aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-04-16 20:22:27 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-04-16 20:22:27 +0000
commit0d6d73d875686a245d66f50211eb4d9ad5b8517d (patch)
tree8bf65f997e3bd9adcafc7efcb3108847745bd029
parent9877de3b4e5cd2a55422bc26181e0b3de61351e6 (diff)
downloadmandoc-0d6d73d875686a245d66f50211eb4d9ad5b8517d.tar.gz
mandoc-0d6d73d875686a245d66f50211eb4d9ad5b8517d.tar.zst
mandoc-0d6d73d875686a245d66f50211eb4d9ad5b8517d.zip
Restore the page headers and page footers that accidentally got lost
in rev. 1.225. Regression reported by florian@.
-rw-r--r--mdoc_html.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index f785e8f4..82b419c7 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.229 2015/04/02 23:48:20 schwarze Exp $ */
+/* $Id: mdoc_html.c,v 1.230 2015/04/16 20:22:27 schwarze Exp $ */
/*
* Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org>
@@ -350,7 +350,9 @@ print_mdoc(MDOC_ARGS)
} else
t = print_otag(h, TAG_DIV, 1, &tag);
+ mdoc_root_pre(meta, n, h);
print_mdoc_nodelist(meta, n, h);
+ mdoc_root_post(meta, n, h);
print_tagq(h, t);
}
@@ -391,9 +393,6 @@ print_mdoc_node(MDOC_ARGS)
n->flags &= ~MDOC_ENDED;
switch (n->type) {
- case ROFFT_ROOT:
- child = mdoc_root_pre(meta, n, h);
- break;
case ROFFT_TEXT:
/* No tables in this mode... */
assert(NULL == h->tblt);
@@ -451,9 +450,6 @@ print_mdoc_node(MDOC_ARGS)
print_stagq(h, t);
switch (n->type) {
- case ROFFT_ROOT:
- mdoc_root_post(meta, n, h);
- break;
case ROFFT_EQN:
break;
default: