Merge pull request #159 from harbichidian/patch-1

Only trim whitespace between non-whitespace and newline (Issue #158)
This commit is contained in:
Thomas Wilburn 2014-03-13 08:54:39 -07:00
commit e227b69a2e

View file

@ -133,7 +133,7 @@ define([
var range = selection.getLineRange(i);
range.end.row = range.start.row;
range.end.column = line.length;
line = line.replace(/\s+$/, "");
line = line.replace(/(\S)\s+$/, "$1");
doc.replace(range, line);
});
if (c) c();
@ -166,4 +166,4 @@ define([
if (c) c();
});
});
});