fixed the case where the crlf is already in use.
Merge branch 'issue/newline'