Skip to content

Commit

Permalink
Fix whitespace before start-pug-interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Quadflieg committed Nov 23, 2019
1 parent aff4969 commit 09e96a3
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 @@ -428,7 +428,7 @@ export const plugin: Plugin = {
result += indent.repeat(indentLevel);
}
result += '|';
if (/.*\S.*/.test(token.val)) {
if (/.*\S.*/.test(token.val) || nextToken?.type === 'start-pug-interpolation') {
result += ' ';
}
break;
Expand Down

0 comments on commit 09e96a3

Please sign in to comment.