Fixes hex color serialization

This commit is contained in:
Maël Nison
2023-10-04 15:42:02 +02:00
committed by GitHub
parent 34017f32fb
commit 7cbaacde40
@@ -604,7 +604,7 @@ export class HTMLSerializeHandler extends BaseSerializeHandler {
(color >> 8) & 255,
(color ) & 255
];
return rgb.map(x => this._padStart(x.toString(16), 2, '0')).join('');
return '#' + rgb.map(x => this._padStart(x.toString(16), 2, '0')).join('');
}
if (isFg ? cell.isFgPalette() : cell.isBgPalette()) {
return this._ansiColors[color].css;