handle newlines when pasting into a non-multiline RET