summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c7
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);
}