diff --git a/.changeset/sixty-colts-sleep.md b/.changeset/sixty-colts-sleep.md new file mode 100644 index 0000000..21837c2 --- /dev/null +++ b/.changeset/sixty-colts-sleep.md @@ -0,0 +1,5 @@ +--- +"penpot-exporter": patch +--- + +Improve paragraph indent using letter spacing diff --git a/plugin-src/translators/text/paragraph/Paragraph.ts b/plugin-src/translators/text/paragraph/Paragraph.ts index 757a26b..1488443 100644 --- a/plugin-src/translators/text/paragraph/Paragraph.ts +++ b/plugin-src/translators/text/paragraph/Paragraph.ts @@ -63,14 +63,14 @@ export class Paragraph { if (indent === 0) return; return { - text: ' '.repeat(indent), + text: ' ', fontId: 'sourcesanspro', fontVariantId: 'regular', - fontSize: '5', + fontSize: '1', fontStyle: 'normal', fontWeight: '400', lineHeight: '1', - letterSpacing: '0' + letterSpacing: indent.toString() }; }