Handle newlines (somewhat) correctly?