Correct handling of line breaks