summaryrefslogtreecommitdiffstatshomepage
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
commitd7e5a98bddb2856e1f16c3d97272b73d70c93a13 (patch)
tree2c5e32894427e1fad1a9fe08207aa26051fb6401 /mdoc_html.c
parent8f202d649f5e8a1455f7d1f15967e5828f761030 (diff)
downloadmandoc-d7e5a98bddb2856e1f16c3d97272b73d70c93a13.tar.gz
mandoc-d7e5a98bddb2856e1f16c3d97272b73d70c93a13.tar.zst
mandoc-d7e5a98bddb2856e1f16c3d97272b73d70c93a13.zip
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.c9
1 files changed, 5 insertions, 4 deletions
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 <kristaps@bsd.lv>
*
@@ -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);
}