summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_html.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2020-02-27 22:26:26 +0000
committerschwarze <schwarze@openbsd.org>2020-02-27 22:26:26 +0000
commit66c5de26971d2a3e6451b9663dcd217535a081fe (patch)
tree41103cb73d431494ab8ef76d234a1a26864ad651 /usr.bin/mandoc/mdoc_html.c
parentMerge a missing fix from awk-12202012 and update the version and FIXES. (diff)
downloadwireguard-openbsd-66c5de26971d2a3e6451b9663dcd217535a081fe.tar.xz
wireguard-openbsd-66c5de26971d2a3e6451b9663dcd217535a081fe.zip
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 'usr.bin/mandoc/mdoc_html.c')
-rw-r--r--usr.bin/mandoc/mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c
index cb0c6a82748..2dfc43a2123 100644
--- a/usr.bin/mandoc/mdoc_html.c
+++ b/usr.bin/mandoc/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mdoc_html.c,v 1.209 2020/02/27 01:25:57 schwarze Exp $ */
+/* $OpenBSD: mdoc_html.c,v 1.210 2020/02/27 22:26:26 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014-2020 Ingo Schwarze <schwarze@openbsd.org>
@@ -729,7 +729,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;
}