aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitf27e8dcec6089cf24702107e517e3c0c5950477d (patch)
tree820e7552a3bbb4dec58c8f24329f3bce76140c82 /man_html.c
parentb89219869bcc53798ee875bb243b8c4f60b23bda (diff)
downloadmandoc-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.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index a9db1dfa..b5e69343 100644
--- a/man_html.c
+++ b/man_html.c
@@ -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);