update files

This commit is contained in:
nuintun 2015-12-02 15:48:46 +08:00
parent 7cc2f49c74
commit 767945b247

View File

@ -1057,11 +1057,13 @@ AnsiTerminal.prototype.toString = function (type){
style = htmlStyle(styleBuffer); style = htmlStyle(styleBuffer);
s += '<span' + (style ? ' style="' + style + '"' : '') + '>'; s += '<span' + (style ? ' style="' + style + '"' : '') + '>';
attrCache = node.attr; attrCache = node.attr;
} else if (j === cols - 1) { } else if (j === cols) {
s += '</span>'; s += '</span>';
} }
if (node.value) { if (node.value) {
console.log(node, styles(node).foreground);
if (node.attr !== attrCache) { if (node.attr !== attrCache) {
style = htmlStyle(styleBuffer); style = htmlStyle(styleBuffer);
s += '</span><span' + (style ? ' style="' + style + '"' : '') + '>'; s += '</span><span' + (style ? ' style="' + style + '"' : '') + '>';
@ -1073,6 +1075,7 @@ AnsiTerminal.prototype.toString = function (type){
} }
s += '</div>'; s += '</div>';
stylesBuffer[i][j] = styleBuffer;
} }
this.stylesBuffer = stylesBuffer; this.stylesBuffer = stylesBuffer;