Newlines bug

Here's a test that exposes the bug.