Clarify branch in performWhitespaceMutations
This commit is contained in:
parent
ce71befee8
commit
7f9286f5c7
3
parse.go
3
parse.go
@ -135,6 +135,9 @@ func performWhitespaceMutations(nodes []ast.Node) {
|
|||||||
handleWhitespace(nodes, i)
|
handleWhitespace(nodes, i)
|
||||||
lastTag = node.Position.Line
|
lastTag = node.Position.Line
|
||||||
case ast.EndTag:
|
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 {
|
if lastTag != node.Position.Line {
|
||||||
handleWhitespace(nodes, i)
|
handleWhitespace(nodes, i)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user