summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 13:53:07 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-06 13:53:07 +0000
commitb1b0aae37dcfbf9c43a595aa139982d182ea8e9a (patch)
tree982bd7f710dd6e11ee48d9c8e3f6224cef0961f2 /man_html.c
parent0e8185a78ba3a32f8dc0bbf129a499a5886091c1 (diff)
downloadmandoc-b1b0aae37dcfbf9c43a595aa139982d182ea8e9a.tar.gz
Header for `PP', `P', and `LP' should never be printed.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index 59d4ca0a..679c3280 100644
--- a/man_html.c
+++ b/man_html.c
@@ -547,8 +547,10 @@ man_PP_pre(MAN_ARGS)
struct roffsu su;
int i;
- if (MAN_BLOCK != n->type)
+ if (MAN_BODY == n->type)
return(1);
+ if (MAN_HEAD == n->type)
+ return(0);
i = 0;
@@ -565,6 +567,7 @@ man_PP_pre(MAN_ARGS)
PAIR_STYLE_INIT(&tag, h);
print_otag(h, TAG_DIV, i, &tag);
+
return(1);
}