aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/manpath.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-10 15:45:28 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-10 15:45:28 +0000
commita4aa2b1f59e2f2354dd17be89ef5ebc595a4bfc0 (patch)
tree8a0ac896c2f0126a6b24dfe59abd0846bfa12747 /manpath.c
parent85cca7a5afcdad576c72653fa8e0373ddde2dbe6 (diff)
downloadmandoc-a4aa2b1f59e2f2354dd17be89ef5ebc595a4bfc0.tar.gz
mandoc-a4aa2b1f59e2f2354dd17be89ef5ebc595a4bfc0.tar.zst
mandoc-a4aa2b1f59e2f2354dd17be89ef5ebc595a4bfc0.zip
In -Ttree output mode, show the BROKEN node flag and
provide a -Onoval output option to show the unvalidated tree.
Diffstat (limited to 'manpath.c')
-rw-r--r--manpath.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/manpath.c b/manpath.c
index 6da3620e..f43ace60 100644
--- a/manpath.c
+++ b/manpath.c
@@ -1,4 +1,4 @@
-/* $Id: manpath.c,v 1.32 2017/01/27 13:47:10 schwarze Exp $ */
+/* $Id: manpath.c,v 1.33 2017/02/10 15:45:28 schwarze Exp $ */
/*
* Copyright (c) 2011, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -226,7 +226,7 @@ manconf_output(struct manoutput *conf, const char *cp, int fromfile)
{
const char *const toks[] = {
"includes", "man", "paper", "style",
- "indent", "width", "fragment", "mdoc"
+ "indent", "width", "fragment", "mdoc", "noval"
};
const char *errstr;
@@ -310,6 +310,9 @@ manconf_output(struct manoutput *conf, const char *cp, int fromfile)
case 7:
conf->mdoc = 1;
return 0;
+ case 8:
+ conf->noval = 1;
+ return 0;
default:
if (fromfile)
warnx("-O %s: Bad argument", cp);