Revert "Add new line at the end of file"

This reverts commit 2e5159c037fc0121909ddf3ed37b7538566d479d.
Add solution to problem 913