From 51e213d8a05d47a79d366c3d85b98c979c80f0b8 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Tue, 7 Mar 2006 19:34:57 +0000 Subject: [PATCH] Only trim spaces and tabs from the end of the current string. Using \s prevents doublespaceing. --- exec/fseditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/fseditor.js b/exec/fseditor.js index 3afb54688a..93c5de764d 100644 --- a/exec/fseditor.js +++ b/exec/fseditor.js @@ -948,7 +948,7 @@ function make_strings(soft,embed_colour) } if(soft || line[i].hardcr) { /* Trim whitespace from end */ - str=str.replace(/(\s*)$/,function (str, spaces, offset, s) { + str=str.replace(/([ \t]*)$/,function (str, spaces, offset, s) { if(!embed_colour) { /* Remove attributes for trimmed spaces */ attrs=attrs.substr(0,attrs.length-spaces.length); -- GitLab