summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-19 12:14:36 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-19 12:14:36 +0000
commit0f7b683510e81e238f298d0a46d4512f599fa533 (patch)
treecf489e2c90adac55ad6d7ceb245cb4e0d25b1653 /mdoc_html.c
parent2a6efe74b7ef7643204cdcca305440dba3c2ae97 (diff)
downloadmandoc-0f7b683510e81e238f298d0a46d4512f599fa533.tar.gz
Migrate schwarze@'s `Bk' argument patch to -T[x]html.
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();