Skip to content

Commit 0bd9239

Browse files
committed
fix: escape double quotes in font-family SVG attribute to fix XML parse error
1 parent 992a2a7 commit 0bd9239

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

scripts/screenshots/card-dark.svg

Lines changed: 4 additions & 4 deletions
Loading

scripts/screenshots/card.svg

Lines changed: 4 additions & 4 deletions
Loading

src/renderer/card.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const buildSVG = (data: CardData, colors: CardColors): string => {
126126
100% { transform: translateX(-${totalWidth.toFixed(0)}px); }
127127
}`;
128128

129-
const font = '-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif';
129+
const font = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif";
130130
const topH = HEIGHT - TICKER_H;
131131
const midY = topH / 2 + 4;
132132

0 commit comments

Comments
 (0)