summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-01-04 10:31:15 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-01-04 10:31:15 +0000
commit241958eedf37464b69731b4b8417dda97c3be391 (patch)
treef518c19954c8c2b706dde68e541201d3511d9046
parent26beb70c0c977cb0ac61d2120a952e854ed7a277 (diff)
downloadmandoc-241958eedf37464b69731b4b8417dda97c3be391.tar.gz
Protect tbl nodes from getting a post call.
-rw-r--r--man_html.c13
1 files 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;
+ }
}