diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-08-09 00:00:37 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2010-08-09 00:00:37 +0000 |
commit | c110d5fd7019990a27401a4d70bd34106e9d66a6 (patch) | |
tree | 917fdadc5a46b3fef4d40e2ac20f00de723811c0 /mdoc_term.c | |
parent | 0ce539688658d136200d6e00abbb9db7b7a7c363 (diff) | |
download | mandoc-c110d5fd7019990a27401a4d70bd34106e9d66a6.tar.gz mandoc-c110d5fd7019990a27401a4d70bd34106e9d66a6.tar.zst mandoc-c110d5fd7019990a27401a4d70bd34106e9d66a6.zip |
Correctly print `Lk' arguments in -Tascii. Issue raised by Aldis Berzoja.
Behaviour ok'd by schwarze@.
Diffstat (limited to 'mdoc_term.c')
-rw-r--r-- | mdoc_term.c | 14 |
1 files 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 <kristaps@bsd.lv> * Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org> @@ -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); |