Preserve line breaks in prompt

Fix for a regression, with a test to make sure it stays fixed.

@stephensanchez