diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2009-02-20 22:30:46 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2009-02-20 22:30:46 +0000 |
commit | d5ece81cc7a908c30e6786b70a4a9db1dd129a8a (patch) | |
tree | 087772a32df24b58858a9bf4990d65d9fc53a9c1 /utils/lint | |
parent | 4c4c9525439812a72d0495fa3d4472854bcc4e47 (diff) |
Keep the newline character at the end of the lines whose trailing whitespace we
are deleting; otherwise, everything ends up on a single line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lint')
-rwxr-xr-x | utils/lint/remove_trailing_whitespace.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lint/remove_trailing_whitespace.sh b/utils/lint/remove_trailing_whitespace.sh index de58dbab7f..6e0c9be093 100755 --- a/utils/lint/remove_trailing_whitespace.sh +++ b/utils/lint/remove_trailing_whitespace.sh @@ -3,4 +3,4 @@ # Sample syntax: # $0 *.cpp -perl -pi -e "s/\s+\$//" $* +perl -pi -e 's/\s+$/\n/' $* |