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 p5GMLT6J018920 for ; Thu, 16 Jun 2011 18:21:29 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id p5GMLSZg001954; Thu, 16 Jun 2011 18:21:28 -0400 (EDT) Date: Thu, 16 Jun 2011 18:21:28 -0400 (EDT) Message-Id: <201106162221.p5GMLSZg001954@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: Have -T[x]html print out the link target for `Lk' if no link X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Have -T[x]html print out the link target for `Lk' if no link title is provided. From a patch by Tim van der Molen. Modified Files: -------------- mdocml: mdoc_html.c Revision Data ------------- Index: mdoc_html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v retrieving revision 1.169 retrieving revision 1.170 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.169 -r1.170 --- mdoc_html.c +++ mdoc_html.c @@ -1666,10 +1666,11 @@ mdoc_lk_pre(MDOC_ARGS) print_otag(h, TAG_A, 2, tag); - for (n = n->next; n; n = n->next) { - assert(MDOC_TEXT == n->type); + if (NULL == n->next) + print_text(h, n->string); + + for (n = n->next; n; n = n->next) print_text(h, n->string); - } return(0); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv