diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-22 05:59:32 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-03-22 05:59:32 +0000 |
commit | 32cbe85d8ce6eee87446621fa65138ae97b24bb8 (patch) | |
tree | ef7a96e354ccaf6e84ec022230ad8840df8ef74d /man_html.c | |
parent | 1f06d7b1d7dc62d0276312c7c411ee4ed3b842f8 (diff) | |
download | mandoc-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.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |