diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-04-11 17:11:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-04-11 17:11:13 +0000 |
commit | 0fde2fa390d9a4194f8a09e5c0f5d921d8755109 (patch) | |
tree | 08324b073d43d72772f99a603423e81140da0263 /mdoc_html.c | |
parent | aa23a004eb502cf67af388be4976d369784961db (diff) | |
download | mandoc-0fde2fa390d9a4194f8a09e5c0f5d921d8755109.tar.gz mandoc-0fde2fa390d9a4194f8a09e5c0f5d921d8755109.tar.zst mandoc-0fde2fa390d9a4194f8a09e5c0f5d921d8755109.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 0b4b9adf..3a047007 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.294 2017/07/15 17:57:51 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.295 2018/04/11 17:11:13 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -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; |