Handle newline chars in the middle of lines as well