Skip to content
This repository has been archived by the owner on Jun 15, 2018. It is now read-only.

Commit

Permalink
More concise end-of-file newline addition
Browse files Browse the repository at this point in the history
  • Loading branch information
l0b0 committed Feb 20, 2012
1 parent 63740bc commit 22227cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ empty_line_before_eof()
# In other words, if the last line contains a character that is not newline,
# append a newline.

sed -e '/.$/a\' "$@"
sed -e '$a\' "$@"
}

markdown_page()
Expand Down

0 comments on commit 22227cf

Please sign in to comment.