summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-02-27 22:28:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-02-27 22:28:13 +0000
commit65d9edcb60637a2dacc525de8389743979e31e41 (patch)
treef2802c9f77663bd47ab5e47762dd6d0e9580f6e2 /mdoc_html.c
parent38c044546783fd645a03d19bfa871035df45507c (diff)
downloadmandoc-65d9edcb60637a2dacc525de8389743979e31e41.tar.gz
The HTML standard does not allow self-closing syntax for non-void elements.
Consequently, write an explicit end tag for <mark> elements.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index bc50720f..5f3973ef 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -731,7 +731,7 @@ mdoc_tg_pre(MDOC_ARGS)
char *id;
if ((id = html_make_id(n, 1)) != NULL)
- print_otag(h, TAG_MARK, "i", id);
+ print_tagq(h, print_otag(h, TAG_MARK, "i", id));
return 0;
}