Skip to content

Commit

Permalink
Merge pull request #4833 from arcanis/patch-3
Browse files Browse the repository at this point in the history
Fixes hex color serialization
  • Loading branch information
Tyriar committed Nov 2, 2023
2 parents 1770bb1 + 52549f0 commit c9f1545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/addon-serialize/src/SerializeAddon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,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;
Expand Down

0 comments on commit c9f1545

Please sign in to comment.