diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-10 15:45:28 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-02-10 15:45:28 +0000 |
commit | a4aa2b1f59e2f2354dd17be89ef5ebc595a4bfc0 (patch) | |
tree | 8a0ac896c2f0126a6b24dfe59abd0846bfa12747 /tree.c | |
parent | 85cca7a5afcdad576c72653fa8e0373ddde2dbe6 (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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) |