source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Remove check for tab.
@ 2011-09-04  9:58 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-09-04  9:58 UTC (permalink / raw)
  To: source

Log Message:
-----------
Remove check for tab.  man(7) says tab is Ok.

Modified Files:
--------------
    mdocml:
        man_validate.c

Revision Data
-------------
Index: man_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_validate.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -Lman_validate.c -Lman_validate.c -u -p -r1.73 -r1.74
--- man_validate.c
+++ 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):
@@ -206,19 +204,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) \
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-04  9:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-04  9:58 mdocml: Remove check for tab kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).