diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-11-10 01:20:17 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-11-10 01:20:17 +0000 |
commit | 21c92dace0052ed78815092d4f3db91367d7a381 (patch) | |
tree | 57fc6ccfea13ebf036eb6f77041cd37b1beb8ecd /contrib/checkSpace.pl | |
parent | 0f89ec7f4c9adfe2e01dde51a009aa6fe0acf46d (diff) | |
download | tor-21c92dace0052ed78815092d4f3db91367d7a381.tar.gz tor-21c92dace0052ed78815092d4f3db91367d7a381.zip |
More whitespace normalization
svn:r2768
Diffstat (limited to 'contrib/checkSpace.pl')
-rwxr-xr-x | contrib/checkSpace.pl | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/contrib/checkSpace.pl b/contrib/checkSpace.pl index 435df10601..1589d723c8 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); } |