Browse Source

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

Misha Brukman 16 years ago
parent
commit
d5ece81cc7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/lint/remove_trailing_whitespace.sh

+ 1 - 1
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/' $*