Correct multi-line paste. Fixes #35