summaryrefslogtreecommitdiffstats
path: root/man_html.c
diff options
context:
space:
mode:
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);