diff options
-rw-r--r-- | formatter/formatter_test.go | 4 | ||||
-rw-r--r-- | 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. |