diff options
author | 2013-12-24 20:45:21 +0000 | |
---|---|---|
committer | 2013-12-24 20:45:21 +0000 | |
commit | 4b1aedf8c8bc3e03034d513d5482e4eacccb7b6d (patch) | |
tree | bfbe607ba50c5a201582e683a59b13c9ff0011dd /usr.bin/mandoc/mdoc_html.c | |
parent | When deciding whether two consecutive macros are on the same input line, (diff) | |
download | wireguard-openbsd-4b1aedf8c8bc3e03034d513d5482e4eacccb7b6d.tar.xz wireguard-openbsd-4b1aedf8c8bc3e03034d513d5482e4eacccb7b6d.zip |
It turns out SYNOPSIS mode does not imply .Bk in general,
but only within .Nm blocks. Simplify the code accordingly.
This reduces groff-mandoc differences in base by about 2%.
Triggered by research done by Franco Fichtner.
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index ec49796ead2..ac35871afc4 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.68 2013/12/24 19:10:34 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.69 2013/12/24 20:45:21 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -455,7 +455,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; |