Sample Header Ad - 728x90

How to add a newline to the end of a file?

290 votes
21 answers
472955 views
Using version control systems I get annoyed at the noise when the diff says No newline at end of file. So I was wondering: How to add a newline at the end of a file to get rid of those messages?
Asked by k0pernikus (16501 rep)
Feb 17, 2012, 12:44 PM
Last activity: Apr 28, 2025, 12:53 PM