diff options
author | Brad Fitzpatrick <brad@danga.com> | 2006-09-04 02:28:11 +0000 |
---|---|---|
committer | Brad Fitzpatrick <brad@danga.com> | 2006-09-04 02:28:11 +0000 |
commit | 8bdbe4a39617b4c0dda5bb8d31bacd78e2fe2fe3 (patch) | |
tree | f296edda654bfd6c1fc52ff0d3fed2e89244e23f /devtools | |
parent | 1ea89bd54442d4040d50aad91e1c86bfeeddc723 (diff) | |
download | memcached-8bdbe4a39617b4c0dda5bb8d31bacd78e2fe2fe3.tar.gz |
but we do want trailing newline at end of file
git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@330 b0b603af-a30f-0410-a34e-baf09ae79d0b
Diffstat (limited to 'devtools')
-rwxr-xr-x | devtools/clean-whitespace.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/devtools/clean-whitespace.pl b/devtools/clean-whitespace.pl index ace00b5..bbde48e 100755 --- a/devtools/clean-whitespace.pl +++ b/devtools/clean-whitespace.pl @@ -10,6 +10,7 @@ foreach my $f (@files) { my $after = $before; $after =~ s/\t/ /g; $after =~ s/\s+$//mg; + $after .= "\n" unless $after =~ /\n$/; next if $after eq $before; open(my $fh, ">$f") or die; print $fh $after; |