[or-cvs] Normalize space: add one between every control keyword and ...

Nick Mathewson nickm at seul.org
Sun Nov 28 09:05:49 UTC 2004


Update of /home/or/cvsroot/tor/contrib
In directory moria.mit.edu:/tmp/cvs-serv11426/contrib

Modified Files:
	checkSpace.pl 
Log Message:
Normalize space: add one between every control keyword and control clause.

Index: checkSpace.pl
===================================================================
RCS file: /home/or/cvsroot/tor/contrib/checkSpace.pl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- checkSpace.pl	22 Nov 2004 23:28:54 -0000	1.3
+++ checkSpace.pl	28 Nov 2004 09:05:45 -0000	1.4
@@ -18,9 +18,9 @@
             print "Space\@EOL:$fn:$.\n";
         }
 	## Warn about control keywords without following space.
-	#if (/\s(?:if|while|for|switch)\(/) {
-	#    print "      KW(:$fn:$.\n";
-	#}
+	if (/\s(?:if|while|for|switch)\(/) {
+	    print "      KW(:$fn:$.\n";
+	}
 	## Warn about multiple empty lines.
         if ($lastnil && /^$/) {
             print " DoubleNL:$fn:$.\n";



More information about the tor-commits mailing list