diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-09-04 09:58:40 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-09-04 09:58:40 +0000 |
commit | 1bb6aaaf519b9a13fc8a1438d9b18ed3f02640b8 (patch) | |
tree | aac75fccc00daa349b809825fda99df231880552 /man_validate.c | |
parent | 2d4fe3c4403ea308c0da29fe4250e6fd94ec3108 (diff) | |
download | mandoc-1bb6aaaf519b9a13fc8a1438d9b18ed3f02640b8.tar.gz |
Remove check for tab. man(7) says tab is Ok.
Diffstat (limited to 'man_validate.c')
-rw-r--r-- | man_validate.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/man_validate.c b/man_validate.c index 39380fa3..0df8fc1f 100644 --- a/man_validate.c +++ b/man_validate.c @@ -52,7 +52,6 @@ static int check_le5(CHKARGS); static int check_par(CHKARGS); static int check_part(CHKARGS); static int check_root(CHKARGS); -static void check_text(CHKARGS); static int post_AT(CHKARGS); static int post_vs(CHKARGS); @@ -153,11 +152,10 @@ man_valid_post(struct man *m) m->last->flags |= MAN_VALID; switch (m->last->type) { - case (MAN_TEXT): - check_text(m, m->last); - return(1); case (MAN_ROOT): return(check_root(m, m->last)); + case (MAN_TEXT): + /* FALLTHROUGH */ case (MAN_EQN): /* FALLTHROUGH */ case (MAN_TBL): @@ -208,19 +206,6 @@ check_root(CHKARGS) return(1); } -static void -check_text(CHKARGS) -{ - char *cp, *p; - - cp = p = n->string; - for (cp = p; NULL != (p = strchr(p, '\t')); p++) { - if (MAN_LITERAL & m->flags) - continue; - man_pmsg(m, n->line, (int)(p - cp), MANDOCERR_BADTAB); - } -} - #define INEQ_DEFINE(x, ineq, name) \ static int \ check_##name(CHKARGS) \ |