diff options
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/man_validate.c b/man_validate.c index a7dcac7c..68584688 100644 --- a/man_validate.c +++ b/man_validate.c @@ -117,10 +117,16 @@ man_valid_pre(struct man *m, struct man_node *n) { v_check *cp; - if (MAN_TEXT == n->type) - return(1); - if (MAN_ROOT == n->type) + switch (n->type) { + case (MAN_TEXT): + /* FALLTHROUGH */ + case (MAN_ROOT): + /* FALLTHROUGH */ + case (MAN_TBL): return(1); + default: + break; + } if (NULL == (cp = man_valids[n->tok].pres)) return(1); @@ -145,6 +151,8 @@ man_valid_post(struct man *m) return(check_text(m, m->last)); case (MAN_ROOT): return(check_root(m, m->last)); + case (MAN_TBL): + return(1); default: break; } |