From 85c2f67c61711f4fee63b14506a8f074796e5644 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 19 Jul 2010 11:06:31 +0000 Subject: Fix spurrious newline emitted by `Pp' when specified before or after `Sh'/`Ss'. Reported by Jason McIntyre. --- mdoc_html.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index cb917b4e..359698aa 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1737,6 +1737,11 @@ mdoc_sp_pre(MDOC_ARGS) len = 0; break; default: + assert(n->parent); + if ((NULL == n->next || NULL == n->prev) && + (MDOC_Ss == n->parent->tok || + MDOC_Sh == n->parent->tok)) + return(0); len = 1; break; } -- cgit