From 1ddd9daa02a7fa9f1cb855ad60101e64f8bd8b36 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 9 Aug 2010 00:00:37 +0000 Subject: Correctly print `Lk' arguments in -Tascii. Issue raised by Aldis Berzoja. Behaviour ok'd by schwarze@. --- mdoc_term.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/mdoc_term.c b/mdoc_term.c index 40f63208..55d5d1e8 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -2119,23 +2119,25 @@ termp_li_pre(DECL_ARGS) static int termp_lk_pre(DECL_ARGS) { - const struct mdoc_node *nn; + const struct mdoc_node *nn, *sv; term_fontpush(p, TERMFONT_UNDER); - nn = n->child; + + nn = sv = n->child; if (NULL == nn->next) return(1); - term_word(p, nn->string); + for (nn = nn->next; nn; nn = nn->next) + term_word(p, nn->string); + term_fontpop(p); p->flags |= TERMP_NOSPACE; term_word(p, ":"); term_fontpush(p, TERMFONT_BOLD); - for (nn = nn->next; nn; nn = nn->next) - term_word(p, nn->string); + term_word(p, sv->string); term_fontpop(p); return(0); -- cgit