summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-03-11 20:53:57 -0400
committerJules Laplace <jules@okfoc.us>2015-03-11 20:53:57 -0400
commit33605bd8d7cdaaa97e97f1891b655848c0f4763b (patch)
treeb76074c26aae507e83e086d3686e49e3e74407f2
parentddf3eab0b847bf687a7a364aee7b7b645810980f (diff)
dont prefix zeroes so aggressively
-rw-r--r--js/lex.js5
-rw-r--r--js/matrix.js2
2 files changed, 2 insertions, 5 deletions
diff --git a/js/lex.js b/js/lex.js
index 8c6b717..4c08262 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -41,13 +41,10 @@ Lex.prototype.sanitize = function(){
var fgOnly = false
Lex.prototype.mirc = function(){
var char = this.char || " "
- if (parseInt(char)) {
- char = "\x02\x02" + char
- }
if (fgOnly) {
return "\x03" + (this.fg&15) + char
}
- if ((this.bg&15) < 10) {
+ if ((this.bg&15) < 10 && parseInt(char)) {
return "\x03" + (this.fg&15) + ",0" + (this.bg&15) + char
}
else {
diff --git a/js/matrix.js b/js/matrix.js
index 33c0b00..08f5a79 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -188,7 +188,7 @@ Matrix.prototype.irssi = function(){
.replace(/\'/g, '\\\'')
.replace(/\`/g, '\\\`')
.replace(/\$/g, '\\$')
- .replace(/\n\s+/g, '\n')
+ // .replace(/\n\s+/g, '\n')
// .replace(/\s+$/g, '\n')
// .replace(/^\n+/, '')
.replace(/\n/g, '\\n')