Skip to content

Commit

Permalink
Sequences like "};" not line-broken anymore
Browse files Browse the repository at this point in the history
Was "};" => "}\n;" before, "};" => "};\n" now.
  • Loading branch information
alexey-k authored and marijnh committed Aug 20, 2012
1 parent 4a034c1 commit 2d5d287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/formatting.js
Expand Up @@ -131,7 +131,7 @@ CodeMirror.modeExtensions["javascript"] = {
autoFormatLineBreaks: function (text, startPos, endPos) {
text = text.substring(startPos, endPos);
var curPos = 0;
var reLinesSplitter = new RegExp("(;|\\{|\\})([^\r\n])", "g");
var reLinesSplitter = new RegExp("(;|\\{|\\})([^\r\n;])", "g");
var nonBreakableBlocks = this.getNonBreakableBlocks(text);
if (nonBreakableBlocks != null) {
var res = "";
Expand Down

0 comments on commit 2d5d287

Please sign in to comment.