From: schwarze Date: Thu, 16 Apr 2015 20:21:08 +0000 (+0000) Subject: Restore the page headers and page footers that accidentally got lost X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=512f31490d402a2d54c6c01ff278745af1e3dd04;p=openbsd Restore the page headers and page footers that accidentally got lost in rev. 1.225. Regression reported by florian@. --- 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 * Copyright (c) 2014, 2015 Ingo Schwarze @@ -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: