FYI if you're using SublimeText there is a preferences setting to force newlines at end of file: ensure_newline_at_eof_on_save