summaryrefslogtreecommitdiffstatshomepage
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
commitb9769fb9bff61e16a65f5a5ef15d86433a612671 (patch)
tree2e908eb3b462e1aa9ca1b84f45a0c5c01f0cedf5 /mdoc_html.c
parent429f4aa6be8e491b69912623f56c194337bc9210 (diff)
downloadmandoc-b9769fb9bff61e16a65f5a5ef15d86433a612671.tar.gz
mandoc-b9769fb9bff61e16a65f5a5ef15d86433a612671.tar.zst
mandoc-b9769fb9bff61e16a65f5a5ef15d86433a612671.zip
Migrate schwarze@'s `Bk' argument patch to -T[x]html.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index d1ec872f..cd3455ef 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.130 2010/12/17 12:57:49 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.131 2010/12/19 12:14:36 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -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();