diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-07-04 14:37:33 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-07-04 14:37:33 +0000 |
commit | 3e929d95e5ab8a5381efc76f4895584623b4320c (patch) | |
tree | 4528f167505dfdc2d3d425d129c4266d01407b5c /man_html.c | |
parent | 93e30573a1712dee910f50fee9a0140b5435401d (diff) | |
download | mandoc-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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, ""); } |