aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-07-27 08:38:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-07-27 08:38:04 +0000
commit045d89ac24985c4ef7d5bc10d85666882637dd62 (patch)
tree8a2d38d0ba8938d2f2ba6d85e04a621eb7b286cb /mdoc_html.c
parentc5cc67f801d437ed8601ac67e37ccdc77f0cac0b (diff)
downloadmandoc-045d89ac24985c4ef7d5bc10d85666882637dd62.tar.gz
mandoc-045d89ac24985c4ef7d5bc10d85666882637dd62.tar.zst
mandoc-045d89ac24985c4ef7d5bc10d85666882637dd62.zip
Fix how `Bd -unfilled' and `Bd -literal' break lines. This unbreaks
displays to work as old groff shows them; however, new groff still does some fancy shit.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index f109bd69..5bd4c014 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.99 2010/07/23 00:08:57 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.100 2010/07/27 08:38:04 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -1457,14 +1457,11 @@ mdoc_bd_pre(MDOC_ARGS)
print_otag(h, TAG_DIV, 2, tag);
for (nn = n->child; nn; nn = nn->next) {
- h->flags |= HTML_NOSPACE;
- print_mdoc_node(m, nn, h);
- if (NULL == nn->next)
- continue;
- if (nn->prev && nn->prev->line < nn->line)
- print_text(h, "\n");
- else if (NULL == nn->prev)
+ if (nn->prev && nn->prev->line < nn->line) {
print_text(h, "\n");
+ h->flags |= HTML_NOSPACE;
+ }
+ print_mdoc_node(m, nn, h);
}
return(0);