summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xllvm/utils/lint/remove_trailing_whitespace.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lint/remove_trailing_whitespace.sh b/llvm/utils/lint/remove_trailing_whitespace.sh
index de58dbab7fc..6e0c9be0932 100755
--- a/llvm/utils/lint/remove_trailing_whitespace.sh
+++ b/llvm/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/' $*
OpenPOWER on IntegriCloud