Merge pull request #159 from harbichidian/patch-1
Only trim whitespace between non-whitespace and newline (Issue #158)
This commit is contained in:
commit
e227b69a2e
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue