diff options
author | 2010-07-19 11:06:31 +0000 | |
---|---|---|
committer | 2010-07-19 11:06:31 +0000 | |
commit | f90057424895469777005ec5e8c4af9179e7ad87 (patch) | |
tree | 3d50417607e59224795ff93c5f97196648d60589 /mdoc_html.c | |
parent | 9f12a090a011ed1b08b0e969623369c17f095a21 (diff) | |
download | mandoc-f90057424895469777005ec5e8c4af9179e7ad87.tar.gz mandoc-f90057424895469777005ec5e8c4af9179e7ad87.tar.zst mandoc-f90057424895469777005ec5e8c4af9179e7ad87.zip |
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.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c index 59c63d3a..c7dbfea0 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.96 2010/07/13 23:53:20 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.97 2010/07/19 11:06:31 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -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; } |