summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index df5c5440..311ea311 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1948,7 +1948,8 @@ mdoc_bk_pre(MDOC_ARGS)
case (MDOC_HEAD):
return(0);
case (MDOC_BODY):
- h->flags |= HTML_PREKEEP;
+ if (n->parent->args || 0 == n->prev->nchild)
+ h->flags |= HTML_PREKEEP;
break;
default:
abort();