summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-04-11 17:11:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-04-11 17:11:13 +0000
commit0609782211f70e20c352ca9e580e328fc5817302 (patch)
tree9361b81eef562a0a60f08897828d866c60a1b5e4 /mdoc_html.c
parent37f94bbdf74663ed1f212a4a0aa87e4faf4ca885 (diff)
downloadmandoc-0609782211f70e20c352ca9e580e328fc5817302.tar.gz
preserve comments before .Dd when converting mdoc(7) to man(7)
with mandoc -Tman; suggested by Thomas Klausner <wiz at NetBSD>
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 7a972038..730e86be 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -344,7 +344,7 @@ print_mdoc_node(MDOC_ARGS)
int child;
struct tag *t;
- if (n->flags & NODE_NOPRT)
+ if (n->type == ROFFT_COMMENT || n->flags & NODE_NOPRT)
return;
child = 1;