summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-12-19 12:18:16 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-12-19 12:18:16 +0000
commitd24ecc24fc053f9208b60a7b31be888b016c17a8 (patch)
tree2810ee6efc1555dd5d185e9556869acc35c9e832 /usr.bin/mandoc/mdoc_html.c
parent33f2974d553e965033ec550a4599b29621e881b8 (diff)
Handle .Bk in -Thmtl the same way as in -Tascii.
From kristaps@.
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r--usr.bin/mandoc/mdoc_html.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c
index 4caee3dee58..3437e07a179 100644
--- a/usr.bin/mandoc/mdoc_html.c
+++ b/usr.bin/mandoc/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.40 2010/12/19 09:22:35 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.41 2010/12/19 12:18:15 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -1946,7 +1946,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();