From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5430 invoked from network); 4 Jul 2022 14:38:05 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 4 Jul 2022 14:38:05 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id f854f4dc for ; Mon, 4 Jul 2022 09:38:03 -0500 (EST) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id 60821f86 for ; Mon, 4 Jul 2022 09:38:03 -0500 (EST) Date: Mon, 4 Jul 2022 09:38:03 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: Put the HTML comment containing the Copyright header (if any) X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <33664353d18105f0@mandoc.bsd.lv> Log Message: ----------- Put the HTML comment containing the Copyright header (if any) between the and the rather than before the because the element ought to be within the first 1024 bytes of the HTML code. Issue found with validator.w3.org. Modified Files: -------------- mandoc: man_html.c mdoc_html.c Revision Data ------------- Index: man_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/man_html.c,v retrieving revision 1.180 retrieving revision 1.181 diff -Lman_html.c -Lman_html.c -u -p -r1.180 -r1.181 --- man_html.c +++ man_html.c @@ -123,11 +123,11 @@ html_man(void *arg, const struct roff_me 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, ""); } Index: mdoc_html.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/mdoc_html.c,v retrieving revision 1.345 retrieving revision 1.346 diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.345 -r1.346 --- mdoc_html.c +++ mdoc_html.c @@ -293,11 +293,11 @@ html_mdoc(void *arg, const struct roff_m 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, ""); } -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv