You should use an editor that will support EditorConfig thingy.. so it will insert the final newline automatically :)

https://github.com/gae-init/gae-init-auth/blob/master/.editorconfig