summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.html2
-rw-r--r--js/matrix.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/index.html b/index.html
index 09ee42b..4852a44 100644
--- a/index.html
+++ b/index.html
@@ -28,7 +28,7 @@
<span id="grid_el" class="tool">_ grid</span><br>
<br>
brush size: <span id="width_el" class="ed">5</span> x <span id="height_el" class="ed">5</span><br>
- canvas size: <span id="canvas_width_el" class="ed">80</span> x <span id="canvas_height_el" class="ed">24</span><br>
+ canvas size: <span id="canvas_width_el" class="ed">100</span> x <span id="canvas_height_el" class="ed">24</span><br>
</div>
<div id="textarea_mode">
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')