marijnh/CodeMirror2 — pull request #376 by ryangies (2012-02-20 00:03:45+00:00)
Title: Added boolean option: collapseEmptyLines

With the option `collapseEmptyLines` set to true, the editor will discard the auto-inserted indentation spaces when `` is hit. For example, type this (without the line numbers):

1 function foo() {
2 var r;
3
4 r = 13;
5
6 return r;
7 }

Starting at the end of line 2, I type `` to get to line 4.

Without `collapseEmptyLines`, lines 3 and 5 will contain space characters which were inserted to indent the line.

* Applies both with and without `smartIndent`.
* Does not apply when replacing a text selection.