Fixed 'Bug 17548 - pasting code doesn't respect formatting'