From 1bd04c1b1191aade27943fd1b3bdb04c9f2a94cc Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 21 Oct 2023 02:15:13 +0200 Subject: Run ‘go fmt’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- formatter/formatter_test.go | 4 ++-- parser/parser.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/formatter/formatter_test.go b/formatter/formatter_test.go index 6274b1f..132059a 100644 --- a/formatter/formatter_test.go +++ b/formatter/formatter_test.go @@ -202,8 +202,8 @@ func TestPrintChildrenTrimMixed(t *testing.T) { } printChildrenTrim([]parser.AstNode{ { - Type: parser.Normal, - Text: "em", + Type: parser.Normal, + Text: "em", Children: children, }, { diff --git a/parser/parser.go b/parser/parser.go index 2e45587..648cfe7 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -58,7 +58,8 @@ func ParseFile(file *os.File) (AstNode, error) { } else { document.Children = append(document.Children, node) } - } } + } +} // parseNode parses the next node in the GSP document, and may call itself // recursively on any child nodes. -- cgit v1.2.3