Don't leave text with newlines in the textarea

There's no multi-line-unit IME that I'm aware of.

Issue #1231