From 3d01a6a266b2430ab9d4168f7d0d7a80b558beea Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 1 Mar 2015 02:54:44 -0500 Subject: dont trim whitespace --- js/matrix.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/matrix.js') diff --git a/js/matrix.js b/js/matrix.js index a8ac200..4f3f870 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -157,7 +157,7 @@ Matrix.prototype.ascii = function () { row.forEach(function(lex, x) { line += lex.ascii() }) - return line.replace(/\s+$/,"") + return line // .replace(/\s+$/,"") }) var txt = lines.join("\n") return txt @@ -188,9 +188,9 @@ Matrix.prototype.irssi = function(){ .replace(/\'/g, '\\\'') .replace(/\`/g, '\\\`') .replace(/\$/g, '\\$') - .replace(/\s+\n/g, '\n') - .replace(/\s+$/g, '\n') - .replace(/^\n+/, '') + // .replace(/\s+\n/g, '\n') + // .replace(/\s+$/g, '\n') + // .replace(/^\n+/, '') .replace(/\n/g, '\\n') .replace(/\x02/g, '\\x02') .replace(/\x03/g, '\\x03') -- cgit v1.2.3-70-g09d2