From 7f9286f5c786229eacc5c6c6ae88b69ef4e8c2de Mon Sep 17 00:00:00 2001 From: Elara6331 Date: Thu, 21 Dec 2023 21:02:53 -0800 Subject: [PATCH] Clarify branch in performWhitespaceMutations --- parse.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/parse.go b/parse.go index f595ea1..bc9484f 100644 --- a/parse.go +++ b/parse.go @@ -135,6 +135,9 @@ func performWhitespaceMutations(nodes []ast.Node) { handleWhitespace(nodes, i) lastTag = node.Position.Line case ast.EndTag: + // If the end tag isn't on the same line as the + // last start tag, it's not inline, so we can + // get rid of its whitespace. if lastTag != node.Position.Line { handleWhitespace(nodes, i) }