aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-24 20:45:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-24 20:45:27 +0000
commitc28713a310b996133153932ab47ff94f3cb06211 (patch)
tree39b1e55bb4cad6e0544e948771e89e1034969075 /mdoc_html.c
parentb303922601f56d18c6f93423c4ff3d27382f885e (diff)
downloadmandoc-c28713a310b996133153932ab47ff94f3cb06211.tar.gz
mandoc-c28713a310b996133153932ab47ff94f3cb06211.tar.zst
mandoc-c28713a310b996133153932ab47ff94f3cb06211.zip
It turns out SYNOPSIS mode does not imply .Bk in general,
but only within .Nm blocks. Simplify the code accordingly. Triggered by research done by Franco Fichtner.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 151657fb..a7aa722d 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.185 2013/12/24 19:11:46 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.186 2013/12/24 20:45:27 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -459,7 +459,7 @@ print_mdoc_node(MDOC_ARGS)
break;
}
- if (HTML_KEEP & h->flags || MDOC_SYNPRETTY & n->flags) {
+ if (HTML_KEEP & h->flags) {
if (n->prev ? (n->prev->lastline != n->line) :
(n->parent && n->parent->line != n->line)) {
h->flags &= ~HTML_KEEP;