summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-11-14 12:04:59 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-11-14 12:04:59 +0000
commitdfbca2422907323ba2f121dca984ffcfd5a15e19 (patch)
tree8132f05e088022d4eb4cade6cd333390aac8f9b8 /mdoc_html.c
parente4ebb5bcdf052d8f914e859f05f4bdebce821b00 (diff)
downloadmandoc-dfbca2422907323ba2f121dca984ffcfd5a15e19.tar.gz
Removed superfluous HTML_NEWLINE.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 9e591d5c..dc8d468c 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -725,12 +725,11 @@ mdoc_nm_pre(MDOC_ARGS)
{
struct htmlpair tag;
- if ( ! (HTML_NEWLINE & h->flags))
- if (SEC_SYNOPSIS == n->sec) {
- bufcat_style(h, "clear", "both");
- PAIR_STYLE_INIT(&tag, h);
- print_otag(h, TAG_BR, 1, &tag);
- }
+ if (SEC_SYNOPSIS == n->sec && n->prev) {
+ bufcat_style(h, "clear", "both");
+ PAIR_STYLE_INIT(&tag, h);
+ print_otag(h, TAG_BR, 1, &tag);
+ }
PAIR_CLASS_INIT(&tag, "name");
print_otag(h, TAG_SPAN, 1, &tag);