X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/6fcb5ea18d95e1cc79dd37b4e2860f4e8c898346..12452d919898af64a3f6aa3403aa56c2cceb5ed3:/mdoc_html.c 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 * @@ -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); }