summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2010-12-19 12:18:15 +0000
committerschwarze <schwarze@openbsd.org>2010-12-19 12:18:15 +0000
commitcbc237f0eb9e1588b968782c6f92ff77552274e6 (patch)
treef0c214259d12d04140bb03e28ecd2c79932b810d /usr.bin/mandoc/mdoc_html.c
parentHandle .Bk the same way as groff 1.20.1: (diff)
downloadwireguard-openbsd-cbc237f0eb9e1588b968782c6f92ff77552274e6.tar.xz
wireguard-openbsd-cbc237f0eb9e1588b968782c6f92ff77552274e6.zip
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();