Navigation Menu

Skip to content

Commit

Permalink
Fixed: repr
Browse files Browse the repository at this point in the history
  • Loading branch information
CJ committed Aug 24, 2016
1 parent 2fb86bb commit 0c47cb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Kit.js
Expand Up @@ -345,7 +345,7 @@ function toPrint(s,isRaw) {
s=s.split('').map(function (c) {
if (!isRaw && printEscapeMap.hasOwnProperty(c)) return printEscapeMap[c];
else if (unicode.test(c)) return '\\u'+('00'+ord(c).toString(16).toUpperCase()).slice(-4);
//else if (ctrl.test(c)) return '\\x'+("0"+ord(c).toString(16).toUpperCase()).slice(-2);
else if (ctrl.test(c)) return '\\x'+("0"+ord(c).toString(16).toUpperCase()).slice(-2);
return c;
}).join('');
return s;
Expand Down
2 changes: 1 addition & 1 deletion src/visualize.js
Expand Up @@ -272,7 +272,7 @@ var plotNode={
},
exact:function (node,x,y) {
var color='skyblue';
return textRect(node.raw,x,y,color);
return textRect(node.chars,x,y,color);
},
dot:function (node,x,y) {
var bgColor='DarkGreen',textColor='white';
Expand Down

0 comments on commit 0c47cb6

Please sign in to comment.