=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.344 retrieving revision 1.346 diff -u -p -r1.344 -r1.346 --- mandoc/mdoc_html.c 2022/06/25 12:44:25 1.344 +++ mandoc/mdoc_html.c 2022/07/04 14:37:33 1.346 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.344 2022/06/25 12:44:25 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.346 2022/07/04 14:37:33 schwarze Exp $ */ /* * Copyright (c) 2014-2022 Ingo Schwarze * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons @@ -293,16 +293,16 @@ 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, ""); } mdoc_root_pre(mdoc, h); - t = print_otag(h, TAG_DIV, "c", "manual-text"); + t = print_otag(h, TAG_MAIN, "c", "manual-text"); print_mdoc_nodelist(mdoc, n, h); print_tagq(h, t); mdoc_root_post(mdoc, h);