Fixed 'Bug 17496 - Generate additional undo steps for formatting
doesn't work on paste'.