Added support for all line endings, i.e. CR, LF or CR+LF.
Authored by: a_abraham 2010-09-26
Parent: [r2133]
Child: [r2135]