summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-12-22 19:49:13 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-12-22 19:49:13 +0000
commit8f6f8a26f2c3997c0f75b4cfa41af7aaeab54501 (patch)
tree4a83b8e8bd7e923be7b8a59e6fade1d6ffea600d /mdoc_html.c
parent2323d7c890449cb408f3426d7aba02eee9174b26 (diff)
downloadmandoc-8f6f8a26f2c3997c0f75b4cfa41af7aaeab54501.tar.gz
In the TOC, close <a> before opening <ul>.
Simplified version of a bugfix patch from rapha@.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 4b9c7eb0..f2219440 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -534,9 +534,10 @@ mdoc_sh_pre(MDOC_ARGS)
for (sn = n; sn != NULL; sn = sn->next) {
tsec = print_otag(h, TAG_LI, "");
id = html_make_id(sn->head, 0);
- print_otag(h, TAG_A, "hR", id);
+ tsub = print_otag(h, TAG_A, "hR", id);
free(id);
print_mdoc_nodelist(meta, sn->head->child, h);
+ print_tagq(h, tsub);
tsub = NULL;
for (subn = sn->body->child; subn != NULL;
subn = subn->next) {