update files

This commit is contained in:
nuintun 2015-12-02 12:59:34 +08:00
parent a2ae340e28
commit f2b8358da5

View File

@ -1053,10 +1053,6 @@ AnsiTerminal.prototype.toString = function (type){
stylesBuffer[i][j].value = node.value;
}
if (j === 0) {
style = '';
attrCache = node.attr;
if (styleBuffer.foreground) {
style += 'color:' + styleBuffer.foreground + ';';
}
@ -1077,7 +1073,11 @@ AnsiTerminal.prototype.toString = function (type){
style += 'text-decoration: underline;';
}
if (j === 0) {
s += '<span' + (style ? ' style="' + style + '"' : '') + '>';
style = '';
attrCache = node.attr;
} else if (j === cols - 1) {
s += '</span>';
}