Clarify branch in performWhitespaceMutations

This commit is contained in:
Elara 2023-12-21 21:02:53 -08:00
parent ce71befee8
commit 7f9286f5c7

View File

@ -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)
}