summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index d9976f12..073aee35 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -541,11 +541,13 @@ mdoc_sh_pre(MDOC_ARGS)
subn = subn->next) {
if (subn->tok != MDOC_Ss)
continue;
+ id = html_make_id(subn->head, 0);
+ if (id == NULL)
+ continue;
if (tsub == NULL)
print_otag(h, TAG_UL,
"c", "Bl-compact");
tsub = print_otag(h, TAG_LI, "");
- id = html_make_id(subn->head, 0);
print_otag(h, TAG_A, "hR", id);
free(id);
print_mdoc_nodelist(meta,