summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-06-16 22:21:28 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-06-16 22:21:28 +0000
commit1936f3f811dbbd2a8a94c22d8f57901f399e7ec5 (patch)
treed100912ef95dc073647c20bae45c9ef79277b1d2 /mdoc_html.c
parent15c81547012f140b7840a8e515a38cbab61462aa (diff)
downloadmandoc-1936f3f811dbbd2a8a94c22d8f57901f399e7ec5.tar.gz
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.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c7
1 files changed, 4 insertions, 3 deletions
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);
}