diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-04 10:31:15 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-01-04 10:31:15 +0000 |
commit | 241958eedf37464b69731b4b8417dda97c3be391 (patch) | |
tree | f518c19954c8c2b706dde68e541201d3511d9046 | |
parent | 26beb70c0c977cb0ac61d2120a952e854ed7a277 (diff) | |
download | mandoc-241958eedf37464b69731b4b8417dda97c3be391.tar.gz |
Protect tbl nodes from getting a post call.
-rw-r--r-- | man_html.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -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; + } } |