diff options
author | 2011-06-18 12:40:57 +0000 | |
---|---|---|
committer | 2011-06-18 12:40:57 +0000 | |
commit | d126008e622c2b265da838e217e9ce390cf3ff0d (patch) | |
tree | 26a195f95ff92f0fe5c07cbf1b5c1f27e65cb06a /usr.bin/mandoc/mdoc_html.c | |
parent | Warn and stop processing if the format string ends with an backslash. (diff) | |
download | wireguard-openbsd-d126008e622c2b265da838e217e9ce390cf3ff0d.tar.xz wireguard-openbsd-d126008e622c2b265da838e217e9ce390cf3ff0d.zip |
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@.
Diffstat (limited to 'usr.bin/mandoc/mdoc_html.c')
-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); } |