diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-11 01:28:54 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-11 01:28:54 +0200 |
commit | 1e49191f5afab7fed8a3f162c9b7e672225c2fdc (patch) | |
tree | 91c794108d6296229974b10b207024f3e65edad4 /formatter | |
parent | 340f5e45f3251a11830af844fd85f8934b90cf79 (diff) |
Add the ‘>’ node modifier
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) } |