Browse files

Add a newline at end of file if needed (sed -a '$a\')

  • Loading branch information...
1 parent 11d5889 commit 6bf6bb1512a38bd901d5d26b5eabc358d9e9b8b7 @libo libo committed Aug 15, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −2 Macros/Convert Tabs to Spaces, Strip whitespace, save.tmMacro
  2. +1 −0
@@ -14,13 +14,13 @@
- <string>perl -pe 's/[\t ]+$//g'</string>
+ <string>perl -pe 's/[\t ]+$//g' | sed -a '$a\'</string>
- <string>Remove Trailing Spaces in Document / Selection</string>
+ <string>Remove Trailing Spaces in Document / Selection. Add a newline at end of file</string>
@@ -4,6 +4,7 @@ This macro automatically removes your "diff cruft" with;
Convert Tabs To Spaces, And
Remove Trailing Whitespace
+ Add a newline at end of file
when you use the Save Cmd (⌘S)

0 comments on commit 6bf6bb1

Please sign in to comment.