From 1e49191f5afab7fed8a3f162c9b7e672225c2fdc Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 11 Sep 2023 01:28:54 +0200 Subject: Add the ‘>’ node modifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- formatter/formatter.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'formatter') 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("", ast.Text) } + + if ast.Newline { + fmt.Print("\n") + } case parser.Tagless: printChildren(ast.Children) } -- cgit v1.2.3