From c110d5fd7019990a27401a4d70bd34106e9d66a6 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 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/mdoc_term.c b/mdoc_term.c index 6181cb87..59c84767 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.180 2010/08/07 17:11:17 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.181 2010/08/09 00:00:37 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * Copyright (c) 2010 Ingo Schwarze @@ -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 v1.2.3-56-ge451