Skip to content

Commit

Permalink
Add whitespace after interpolation and call
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Quadflieg committed Nov 16, 2019
1 parent 49b4b4c commit 7670ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ export const plugin: Plugin = {
val = formatText(val, singleQuote);
}

if (previousToken?.type === 'tag' || previousToken?.type === 'id') {
if (['tag', 'id', 'interpolation', 'call'].includes(previousToken?.type)) {
val = ` ${val}`;
}

Expand Down

0 comments on commit 7670ade

Please sign in to comment.