aboutsummaryrefslogtreecommitdiff
path: root/contrib/checkSpace.pl
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-11-10 01:20:17 +0000
committerNick Mathewson <nickm@torproject.org>2004-11-10 01:20:17 +0000
commit21c92dace0052ed78815092d4f3db91367d7a381 (patch)
tree57fc6ccfea13ebf036eb6f77041cd37b1beb8ecd /contrib/checkSpace.pl
parent0f89ec7f4c9adfe2e01dde51a009aa6fe0acf46d (diff)
downloadtor-21c92dace0052ed78815092d4f3db91367d7a381.tar
tor-21c92dace0052ed78815092d4f3db91367d7a381.tar.gz
More whitespace normalization
svn:r2768
Diffstat (limited to 'contrib/checkSpace.pl')
-rwxr-xr-xcontrib/checkSpace.pl32
1 files changed, 16 insertions, 16 deletions
diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl
index 435df1060..1589d723c 100755
--- a/contrib/checkSpace.pl
+++ b/contrib/checkSpace.pl
@@ -4,22 +4,22 @@ for $fn (@ARGV) {
open(F, "$fn");
$lastnil = 0;
while (<F>) {
- if (/\r/) {
- print " CR:$fn:$.\n";
- }
- if (/\t/) {
- print " TAB:$fn:$.\n";
- }
- if (/ +$/) {
- print "Space\@EOL:$fn:$.\n";
- }
- if ($lastnil && /^$/) {
- print " DoubleNL:$fn:$.\n";
- } elsif (/^$/) {
- $lastnil = 1;
- } else {
- $lastnil = 0;
- }
+ if (/\r/) {
+ print " CR:$fn:$.\n";
+ }
+ if (/\t/) {
+ print " TAB:$fn:$.\n";
+ }
+ if (/ +$/) {
+ print "Space\@EOL:$fn:$.\n";
+ }
+ if ($lastnil && /^$/) {
+ print " DoubleNL:$fn:$.\n";
+ } elsif (/^$/) {
+ $lastnil = 1;
+ } else {
+ $lastnil = 0;
+ }
}
close(F);
}