mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-15 09:17:02 +08:00
update files
This commit is contained in:
parent
a2ae340e28
commit
f2b8358da5
@ -1053,10 +1053,6 @@ AnsiTerminal.prototype.toString = function (type){
|
|||||||
stylesBuffer[i][j].value = node.value;
|
stylesBuffer[i][j].value = node.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (j === 0) {
|
|
||||||
style = '';
|
|
||||||
attrCache = node.attr;
|
|
||||||
|
|
||||||
if (styleBuffer.foreground) {
|
if (styleBuffer.foreground) {
|
||||||
style += 'color:' + styleBuffer.foreground + ';';
|
style += 'color:' + styleBuffer.foreground + ';';
|
||||||
}
|
}
|
||||||
@ -1077,7 +1073,11 @@ AnsiTerminal.prototype.toString = function (type){
|
|||||||
style += 'text-decoration: underline;';
|
style += 'text-decoration: underline;';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (j === 0) {
|
||||||
s += '<span' + (style ? ' style="' + style + '"' : '') + '>';
|
s += '<span' + (style ? ' style="' + style + '"' : '') + '>';
|
||||||
|
|
||||||
|
style = '';
|
||||||
|
attrCache = node.attr;
|
||||||
} else if (j === cols - 1) {
|
} else if (j === cols - 1) {
|
||||||
s += '</span>';
|
s += '</span>';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user