From: Youness Alaoui Date: Sun, 9 Jan 2011 14:27:32 +0000 (-0500) Subject: Add auto-remove trailing whitespaces to kakaroto-indent script X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=7b3b50597eaa68d7305982d65e55af980b2800ba;p=console%2FRCOMage.git Add auto-remove trailing whitespaces to kakaroto-indent script --- 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] +