From 197c9b4b95f620c85c7189491b03e393ec3d4b44 Mon Sep 17 00:00:00 2001 From: schwarze Date: Mon, 6 Dec 2010 22:43:54 +0000 Subject: Never print .P, .PP, and .LP header content. From kristaps@. --- usr.bin/mandoc/man_html.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.bin/mandoc/man_html.c') 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 * Copyright (c) 2010 Ingo Schwarze @@ -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); } -- cgit v1.2.3-59-g8ed1b