Fix handling of newlines in "none" state