aboutsummaryrefslogtreecommitdiff
path: root/formatter
diff options
context:
space:
mode:
Diffstat (limited to 'formatter')
-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)
}