diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-04-16 20:21:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2015-04-16 20:21:09 +0000 |
commit | 1f8bea8f8965b41ae83fe7c4def3c2b4bcfde4db (patch) | |
tree | f617b3aaa8a9b24d945da3cd9e71e10846780c9c | |
parent | e8619fdd8c56c97565a401b3b9e490fafed9677a (diff) |
Restore the page headers and page footers that accidentally got lost
in rev. 1.225. Regression reported by florian@.
-rw-r--r-- | usr.bin/mandoc/mdoc_html.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/usr.bin/mandoc/mdoc_html.c b/usr.bin/mandoc/mdoc_html.c index 3bb09c979ac..c0fea15cde0 100644 --- a/usr.bin/mandoc/mdoc_html.c +++ b/usr.bin/mandoc/mdoc_html.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mdoc_html.c,v 1.104 2015/04/02 23:47:43 schwarze Exp $ */ +/* $OpenBSD: mdoc_html.c,v 1.105 2015/04/16 20:21:08 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze@openbsd.org> @@ -348,7 +348,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); } @@ -389,9 +391,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); @@ -449,9 +448,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: |