From 512f31490d402a2d54c6c01ff278745af1e3dd04 Mon Sep 17 00:00:00 2001 From: schwarze Date: Thu, 16 Apr 2015 20:21:08 +0000 Subject: [PATCH] Restore the page headers and page footers that accidentally got lost in rev. 1.225. Regression reported by florian@. --- usr.bin/mandoc/mdoc_html.c | 10 +++------- 1 file 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 * 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: -- 2.20.1