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 | f27e8dcec6089cf24702107e517e3c0c5950477d (patch) | |
tree | 820e7552a3bbb4dec58c8f24329f3bce76140c82 /man_html.c | |
parent | b89219869bcc53798ee875bb243b8c4f60b23bda (diff) | |
download | mandoc-f27e8dcec6089cf24702107e517e3c0c5950477d.tar.gz mandoc-f27e8dcec6089cf24702107e517e3c0c5950477d.tar.zst mandoc-f27e8dcec6089cf24702107e517e3c0c5950477d.zip |
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 | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: man_html.c,v 1.26 2010/01/29 14:39:38 kristaps Exp $ */ +/* $Id: man_html.c,v 1.27 2010/03/22 05:59:32 kristaps Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -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); |