From 241958eedf37464b69731b4b8417dda97c3be391 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 4 Jan 2011 10:31:15 +0000 Subject: Protect tbl nodes from getting a post call. --- man_html.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/man_html.c b/man_html.c index 02031e20..2d69f100 100644 --- a/man_html.c +++ b/man_html.c @@ -227,10 +227,17 @@ print_man_node(MAN_ARGS) bufinit(h); - if (MAN_ROOT == n->type) + switch (n->type) { + case (MAN_ROOT): man_root_post(m, n, mh, h); - else if (mans[n->tok].post) - (*mans[n->tok].post)(m, n, mh, h); + break; + case (MAN_TBL): + break; + default: + if (mans[n->tok].post) + (*mans[n->tok].post)(m, n, mh, h); + break; + } } -- cgit