summaryrefslogtreecommitdiffstats
path: root/man_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 /man_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 'man_html.c')
-rw-r--r--man_html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/man_html.c b/man_html.c
index cd442a35..d8cd7f5f 100644
--- a/man_html.c
+++ b/man_html.c
@@ -123,11 +123,11 @@ html_man(void *arg, const struct roff_meta *man)
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_man_head(man, h);
print_tagq(h, t);
+ if (n != NULL && n->type == ROFFT_COMMENT)
+ print_gen_comment(h, n);
print_otag(h, TAG_BODY, "");
}