=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/mdoc_html.c,v retrieving revision 1.57 retrieving revision 1.58 diff -u -r1.57 -r1.58 --- src/usr.bin/mandoc/mdoc_html.c 2011/05/29 21:22:18 1.57 +++ src/usr.bin/mandoc/mdoc_html.c 2011/06/18 12:40:57 1.58 @@ -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 * @@ -1662,10 +1662,11 @@ 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); }