Skip to content
Snippets Groups Projects
Commit a38b3d3e authored by deuce's avatar deuce
Browse files

Trim whitespace from line before appending a newline.

parent 7a711eaa
No related branches found
No related tags found
No related merge requests found
...@@ -775,8 +775,11 @@ function make_string(soft,colour) ...@@ -775,8 +775,11 @@ function make_string(soft,colour)
else { else {
str.=line[i].text; str.=line[i].text;
} }
if(soft || line[i].hardcr) if(soft || line[i].hardcr) {
/* Trim whitespace */
str=str.replace(/\s*$/,'');
str+='\n'; str+='\n';
}
} }
return(str); return(str);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment