diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-06-16 22:21:28 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-06-16 22:21:28 +0000 |
commit | 1936f3f811dbbd2a8a94c22d8f57901f399e7ec5 (patch) | |
tree | d100912ef95dc073647c20bae45c9ef79277b1d2 /mdoc_html.c | |
parent | 15c81547012f140b7840a8e515a38cbab61462aa (diff) | |
download | mandoc-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.c | 7 |
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); } |