From 1936f3f811dbbd2a8a94c22d8f57901f399e7ec5 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 16 Jun 2011 22:21:28 +0000 Subject: 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. --- mdoc_html.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 226c4205..62c865cb 100644 --- a/mdoc_html.c +++ b/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); } -- cgit