marijnh/CodeMirror2 — pull request #561 by alexey-k (2012-06-05 06:12:47+00:00)
Title: Fixed bug with duplicating formatted text

In CSS/XML/JavaScript when only a part of the code, not the entire code, is formatted, formatting.js replaces the selection with the entire code in reformatted form, not with the expected reformatted text snippet. The change fixes the problem.