From 09e96a38750f86f5de6fe31f4cd55a0f4ac76b4c Mon Sep 17 00:00:00 2001 From: Christopher Quadflieg Date: Sat, 23 Nov 2019 13:06:14 +0100 Subject: [PATCH] Fix whitespace before start-pug-interpolation --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index ca2284d1..226c916c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;