From 32cbe85d8ce6eee87446621fa65138ae97b24bb8 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 22 Mar 2010 05:59:32 +0000 Subject: Accomodate (libman) for next-line macros followed by non-text macros `na', `sp', and `br'. Based on a patch by Ingo Schwarze. --- man_html.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'man_html.c') 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); -- cgit