=================================================================== RCS file: /cvs/mandoc/mdoc_html.c,v retrieving revision 1.228 retrieving revision 1.230 diff -u -p -r1.228 -r1.230 --- mandoc/mdoc_html.c 2015/04/02 22:48:17 1.228 +++ mandoc/mdoc_html.c 2015/04/16 20:22:27 1.230 @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.228 2015/04/02 22:48:17 schwarze Exp $ */ +/* $Id: mdoc_html.c,v 1.230 2015/04/16 20:22:27 schwarze Exp $ */ /* * Copyright (c) 2008-2011, 2014 Kristaps Dzonsons * Copyright (c) 2014, 2015 Ingo Schwarze @@ -35,7 +35,7 @@ #define INDENT 5 -#define MDOC_ARGS const struct mdoc_meta *meta, \ +#define MDOC_ARGS const struct roff_meta *meta, \ struct roff_node *n, \ struct html *h @@ -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: