From 7b3b50597eaa68d7305982d65e55af980b2800ba Mon Sep 17 00:00:00 2001 From: Youness Alaoui Date: Sun, 9 Jan 2011 09:27:32 -0500 Subject: [PATCH] Add auto-remove trailing whitespaces to kakaroto-indent script --- kakaroto-indent | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kakaroto-indent b/kakaroto-indent index 247cbdc..74feb29 100755 --- a/kakaroto-indent +++ b/kakaroto-indent @@ -54,6 +54,9 @@ BREAK_LONG_LINES=" \ --break-after-boolean-operator" - +# Fix indentation indent $BLANKS $COMMENTS $STATEMENTS $DECLARATIONS $INDENTATION $BREAK_LONG_LINES *.[ch] +# Remove all trailing whitespaces +sed 's/[ \t]*$//' -i *.[ch] + -- 2.39.5