Fixing Extra Newlines in Text Files
September 11th, 2010
When editing source code you often come across files with additional blank lines that shouldn’t be there.

The problem is generally caused by someone editing the file with a text editor which doesn’t understand and maintain the different newline types. You then end up with a file containing a mix of different line endings. Read more…