From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o7900bl2012392 for ; Sun, 8 Aug 2010 20:00:37 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o7900b2i004287; Sun, 8 Aug 2010 20:00:37 -0400 (EDT) Date: Sun, 8 Aug 2010 20:00:37 -0400 (EDT) Message-Id: <201008090000.o7900b2i004287@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Correctly print `Lk' arguments in -Tascii. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Correctly print `Lk' arguments in -Tascii. Issue raised by Aldis Berzoja. Behaviour ok'd by schwarze@. Modified Files: -------------- mdocml: mdoc_term.c Revision Data ------------- Index: mdoc_term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v retrieving revision 1.180 retrieving revision 1.181 diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.180 -r1.181 --- mdoc_term.c +++ 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); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv