summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man_html.c4
-rw-r--r--mdoc_html.c4
2 files changed, 4 insertions, 4 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, "");
}
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, "");
}