From 1bb6aaaf519b9a13fc8a1438d9b18ed3f02640b8 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 4 Sep 2011 09:58:40 +0000 Subject: Remove check for tab. man(7) says tab is Ok. --- man_validate.c | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) (limited to 'man_validate.c') 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) \ -- cgit