diff options
author | 2010-12-06 22:43:54 +0000 | |
---|---|---|
committer | 2010-12-06 22:43:54 +0000 | |
commit | 197c9b4b95f620c85c7189491b03e393ec3d4b44 (patch) | |
tree | 38f1c7be93b620a6499be627f1b06be7ff119b10 /usr.bin/mandoc/man_html.c | |
parent | - partially revert previous NENTS removal for arches which got busted. (diff) | |
download | wireguard-openbsd-197c9b4b95f620c85c7189491b03e393ec3d4b44.tar.xz wireguard-openbsd-197c9b4b95f620c85c7189491b03e393ec3d4b44.zip |
Never print .P, .PP, and .LP header content.
From kristaps@.
Diffstat (limited to 'usr.bin/mandoc/man_html.c')
-rw-r--r-- | usr.bin/mandoc/man_html.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man_html.c b/usr.bin/mandoc/man_html.c index 6301ddc3906..54e62530832 100644 --- a/usr.bin/mandoc/man_html.c +++ b/usr.bin/mandoc/man_html.c @@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.21 2010/11/29 02:26:45 schwarze Exp $ */ +/* $Id: man_html.c,v 1.22 2010/12/06 22:43:54 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -544,8 +544,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; @@ -562,6 +564,7 @@ man_PP_pre(MAN_ARGS) PAIR_STYLE_INIT(&tag, h); print_otag(h, TAG_DIV, i, &tag); + return(1); } |