From d7e5a98bddb2856e1f16c3d97272b73d70c93a13 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 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 57ebc348..1db351ce 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.169 2011/05/17 11:38:18 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.170 2011/06/16 22:21:28 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons * @@ -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 v1.2.3-56-ge451