summaryrefslogtreecommitdiffstats
path: root/mdoc_html.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-07-04 14:37:33 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-07-04 14:37:33 +0000
commit3e929d95e5ab8a5381efc76f4895584623b4320c (patch)
tree4528f167505dfdc2d3d425d129c4266d01407b5c /mdoc_html.c
parent93e30573a1712dee910f50fee9a0140b5435401d (diff)
downloadmandoc-3e929d95e5ab8a5381efc76f4895584623b4320c.tar.gz
Put the HTML comment containing the Copyright header (if any)
between the <head> and the <body> rather than before the <head> because the <meta charset="utf-8"/> element ought to be within the first 1024 bytes of the HTML code. Issue found with validator.w3.org.
Diffstat (limited to 'mdoc_html.c')
-rw-r--r--mdoc_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 16b72e00..07faa8a1 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -293,11 +293,11 @@ html_mdoc(void *arg, const struct roff_meta *mdoc)
if ((h->oflags & HTML_FRAGMENT) == 0) {
print_gen_decls(h);
print_otag(h, TAG_HTML, "");
- if (n != NULL && n->type == ROFFT_COMMENT)
- print_gen_comment(h, n);
t = print_otag(h, TAG_HEAD, "");
print_mdoc_head(mdoc, h);
print_tagq(h, t);
+ if (n != NULL && n->type == ROFFT_COMMENT)
+ print_gen_comment(h, n);
print_otag(h, TAG_BODY, "");
}