summaryrefslogtreecommitdiffstats
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
commit33be0794e265a46ae95f2b46b2d4e7d6f60e3f66 (patch)
tree5ee13f7cf5d5ada38d679d5bdc4210ad1b0e4e40 /tree.c
parent5b9da291e12f07f785311d286e2776f927683b2b (diff)
downloadmandoc-33be0794e265a46ae95f2b46b2d4e7d6f60e3f66.tar.gz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tree.c b/tree.c
index 39e27753..4a04864f 100644
--- a/tree.c
+++ b/tree.c
@@ -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)