From 301510db190299a41fef4730b4164453a42510d1 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 6 Dec 2010 13:53:07 +0000 Subject: [PATCH] Header for `PP', `P', and `LP' should never be printed. --- man_html.c | 7 +++++-- man_term.c | 4 ++-- 2 files changed, 7 insertions(+), 4 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 * @@ -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); } diff --git a/man_term.c b/man_term.c index fa51615d..9e8fc45d 100644 --- a/man_term.c +++ b/man_term.c @@ -1,4 +1,4 @@ -/* $Id: man_term.c,v 1.86 2010/12/05 16:14:16 kristaps Exp $ */ +/* $Id: man_term.c,v 1.87 2010/12/06 13:53:07 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -492,7 +492,7 @@ pre_PP(DECL_ARGS) break; } - return(1); + return(MAN_HEAD != n->type); } -- 2.47.1