mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-07 19:44:35 +08:00
update files
This commit is contained in:
parent
7cc2f49c74
commit
767945b247
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user