aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tree.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 /tree.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 'tree.c')
-rw-r--r--tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tree.c b/tree.c
index 9e68b69e..dd36ff59 100644
--- a/tree.c
+++ b/tree.c
@@ -1,4 +1,4 @@
-/* $Id: tree.c,v 1.72 2017/01/12 17:29:33 schwarze Exp $ */
+/* $Id: tree.c,v 1.73 2017/02/10 15:45:28 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2013, 2014, 2015, 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -192,6 +192,8 @@ print_mdoc(const struct roff_node *n, int indent)
putchar(')');
if (NODE_EOS & n->flags)
putchar('.');
+ if (NODE_BROKEN & n->flags)
+ printf(" BROKEN");
if (NODE_NOSRC & n->flags)
printf(" NOSRC");
if (NODE_NOPRT & n->flags)