summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules <jules@asdf.us>2015-04-11 13:09:02 -0400
committerJules <jules@asdf.us>2015-04-11 13:09:02 -0400
commit9398dd9b760c2c48e96daf7c6751f50776cd75cf (patch)
treefe9c20db490bda80b94a572e2e36e5353b7dda17
parenteed7977422102615781aec93be548e4d46b4700c (diff)
actual fix
-rw-r--r--js/color_code.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/color_code.js b/js/color_code.js
index 5789042..7c5f236 100644
--- a/js/color_code.js
+++ b/js/color_code.js
@@ -198,7 +198,7 @@ var MircColor = (function(){
}
function ascii (rows) {
var lines = rows.map(function(str){
- return str.map(function(index){ return "\\x03"," + index + "x" }).join("")
+ return str.map(function(index){ return "\\x03," + index + " " }).join("")
}).join("\\n")
var txt = '/exec -out printf "' + lines + '"\n'
return txt
@@ -211,7 +211,7 @@ var MircColor = (function(){
function stringFromUrl (url, cb, opt) {
fromUrl(url, function(rows){
cb(rows.map(function(str){
- return str.map(function(index){ return "\C-c," + index + "x" }).join("")
+ return str.map(function(index){ return "\C-c," + index + " " }).join("")
}).join("\n"))
}, width)
}