aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit301510db190299a41fef4730b4164453a42510d1 (patch)
tree1b5e0844474d6ef3817b5a5f2218a08cd93f841e /man_html.c
parent46d1f3eee23beaa8e6de58c950414594a9534242 (diff)
downloadmandoc-301510db190299a41fef4730b4164453a42510d1.tar.gz
mandoc-301510db190299a41fef4730b4164453a42510d1.tar.zst
mandoc-301510db190299a41fef4730b4164453a42510d1.zip
Header for `PP', `P', and `LP' should never be printed.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index 63de4534..3d7a0f15 100644
--- a/man_html.c
+++ b/man_html.c
@@ -1,4 +1,4 @@
-/* $Id: man_html.c,v 1.46 2010/12/05 16:14:16 kristaps Exp $ */
+/* $Id: man_html.c,v 1.47 2010/12/06 13:53:07 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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);
}