diff options
Diffstat (limited to 'formatter')
-rw-r--r-- | formatter/formatter.go | 4 |
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) } |