diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-06-18 12:40:58 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-06-18 12:40:58 +0000 |
commit | 02b221adcef45b82524fb94f1c3cbb3f4f77be1e (patch) | |
tree | 910a9185c63ec19fab9d37b5bf261588658f9723 | |
parent | 5aecd6b7179a0266aa846bfce2807732b91b3723 (diff) |
Have -T[x]html print out the link target for `Lk'
if no link title is provided.
Based on a patch by Tim van der Molen, tweaked by kristaps@.
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 2bbf5f6fe75..a495b189b42 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.57 2011/05/29 21:22:18 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.58 2011/06/18 12:40:57 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -1662,10 +1662,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); } |