aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit857e034db681b3005c938654ecbd7e973cc29908 (patch)
treecc454f010cfed332244610031f67ed13db0447d7 /mdoc_html.c
parentd502d4a4bb59a31df7fdbcf4a9b59c21fc1aef1c (diff)
downloadmandoc-857e034db681b3005c938654ecbd7e973cc29908.tar.gz
mandoc-857e034db681b3005c938654ecbd7e973cc29908.tar.zst
mandoc-857e034db681b3005c938654ecbd7e973cc29908.zip
Removed superfluous HTML_NEWLINE.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 15986cc7..df14ea61 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.46 2009/10/31 08:34:12 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.47 2009/11/14 12:04:59 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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);