Finally my Strip Whitespace On Save bundle (https://github.com/bomberstudios/Strip-Whitespace-On-Save.tmbundle) is working!
I like it.
You may want to update the command so that caret placement uses character/line interpolation - otherwise it's quite disorientating ending up at EOF on each save.
Cheers, Simon
--- i/Commands/Strip Whitespace On Save.tmCommand +++ w/Commands/Strip Whitespace On Save.tmCommand @@ -18,7 +18,7 @@ perl -pe 's/[\t ]+$//g' <key>name</key> <string>Strip Whitespace On Save</string> <key>outputCaret</key> - <string>heuristic</string> + <string>interpolateByLine</string> <key>outputFormat</key> <string>text</string> <key>outputLocation</key>