0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-03-12 07:21:20 -05:00

chore(cli): fix whitespace after emoji in logs

U+1F5BC FRAME WITH PICTURE requires appending a U+FE0F VARIATION SELECTOR-16 so that its emoji representation is forced. This causes terminal emulators to not reserve space for the next character. A hack consisting in using a U+00A0 NO-BREAK SPACE afterwards works, but copying the output and pasting it elsewhere will cause a double space.

Replacing U+1F5BC FRAME WITH PICTURE with another emoji that doesn't have a textual representation like U+1F3A8 ARTIST PALETTE solves this.
This commit is contained in:
Roberto Redradix 2023-08-31 20:14:31 +02:00 committed by Roberto RedRadix
parent d2540b3765
commit 6fbc1adace

View file

@ -29,7 +29,7 @@ export async function generateCssFromConfig(
fileId: fileConfig.fileId,
})
console.log('🖼️ Processing Penpot file: %s', penpotFile.fileName)
console.log('🎨 Processing Penpot file: %s', penpotFile.fileName)
for (const colorsConfig of fileConfig.colors) {
const cssClassDefinition: CSSClassDefinition = {