summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-03-22 05:59:32 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-03-22 05:59:32 +0000
commit32cbe85d8ce6eee87446621fa65138ae97b24bb8 (patch)
treeef7a96e354ccaf6e84ec022230ad8840df8ef74d /man_html.c
parent1f06d7b1d7dc62d0276312c7c411ee4ed3b842f8 (diff)
downloadmandoc-32cbe85d8ce6eee87446621fa65138ae97b24bb8.tar.gz
Accomodate (libman) for next-line macros followed by non-text macros `na', `sp', and `br'.
Based on a patch by Ingo Schwarze.
Diffstat (limited to 'man_html.c')
-rw-r--r--man_html.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/man_html.c b/man_html.c
index 93ee8120..974c37b5 100644
--- a/man_html.c
+++ b/man_html.c
@@ -574,8 +574,12 @@ man_IP_pre(MAN_ARGS)
width = a2width(nn, &su);
}
- if (MAN_TP == n->tok && NULL != nn)
+ if (MAN_TP == n->tok && NULL != nn) {
+ while (nn && MAN_TEXT != nn->type)
+ nn = nn->next;
+ /* FIXME: sync with pre_TP(), man_term.c */
width = a2width(nn, &su);
+ }
if (MAN_BLOCK == n->type) {
bufcat_su(h, "margin-left", &su);
@@ -605,6 +609,8 @@ man_IP_pre(MAN_ARGS)
if ( ! width)
return(1);
+ /* FIXME: sync with pre_TP(), man_term.c */
+
if (MAN_IP == n->tok)
for (nn = n->child; nn->next; nn = nn->next)
print_man_node(m, nn, h);