diff options
author | 2010-12-06 22:43:54 +0000 | |
---|---|---|
committer | 2010-12-06 22:43:54 +0000 | |
commit | 197c9b4b95f620c85c7189491b03e393ec3d4b44 (patch) | |
tree | 38f1c7be93b620a6499be627f1b06be7ff119b10 | |
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@.
-rw-r--r-- | usr.bin/mandoc/man_html.c | 7 | ||||
-rw-r--r-- | usr.bin/mandoc/man_term.c | 4 |
2 files changed, 7 insertions, 4 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); } diff --git a/usr.bin/mandoc/man_term.c b/usr.bin/mandoc/man_term.c index 0b8a8d5cdc2..1a4280fc81b 100644 --- a/usr.bin/mandoc/man_term.c +++ b/usr.bin/mandoc/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.53 2010/11/29 02:26:45 schwarze Exp $ */ +/* $Id: man_term.c,v 1.54 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> @@ -510,7 +510,7 @@ pre_PP(DECL_ARGS) break; } - return(1); + return(MAN_HEAD != n->type); } |