summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-19 11:06:31 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-19 11:06:31 +0000
commit85c2f67c61711f4fee63b14506a8f074796e5644 (patch)
treeb873cf288687b59d9fa01cb7e96afef575a447b6 /mdoc_html.c
parent1507d1e29763a8c5c8133abfc572ae97eb6dd72d (diff)
downloadmandoc-85c2f67c61711f4fee63b14506a8f074796e5644.tar.gz
Fix spurrious newline emitted by `Pp' when specified before or after
`Sh'/`Ss'. Reported by Jason McIntyre.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c5
1 files changed, 5 insertions, 0 deletions
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;
}