aboutsummaryrefslogtreecommitdiff
path: root/formatter/formatter.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-11 01:28:54 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-11 01:28:54 +0200
commit1e49191f5afab7fed8a3f162c9b7e672225c2fdc (patch)
tree91c794108d6296229974b10b207024f3e65edad4 /formatter/formatter.go
parent340f5e45f3251a11830af844fd85f8934b90cf79 (diff)
Add the ‘>’ node modifier
Diffstat (limited to 'formatter/formatter.go')
-rw-r--r--formatter/formatter.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/formatter/formatter.go b/formatter/formatter.go
index 7c80b96..157b0ab 100644
--- a/formatter/formatter.go
+++ b/formatter/formatter.go
@@ -36,6 +36,10 @@ func PrintAst(ast parser.AstNode) {
printChildren(ast.Children)
fmt.Printf("</%s>", ast.Text)
}
+
+ if ast.Newline {
+ fmt.Print("\n")
+ }
case parser.Tagless:
printChildren(ast.Children)
}