Did you test on Windows? `\r?` before `\n` my be necessary.