fix multi-line clipboard pasting