Be more tolerant of newlines.