aboutsummaryrefslogtreecommitdiff
path: root/formatter/formatter.go
diff options
context:
space:
mode:
Diffstat (limited to 'formatter/formatter.go')
-rw-r--r--formatter/formatter.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/formatter/formatter.go b/formatter/formatter.go
index 526de5a..1d8dd58 100644
--- a/formatter/formatter.go
+++ b/formatter/formatter.go
@@ -27,6 +27,9 @@ func PrintAst(ast parser.AstNode) {
case parser.Text:
printText(ast.Text)
case parser.Normal:
+ if ast.Text == "/" {
+ return
+ }
fmt.Printf("<%s", ast.Text)
printAttrs(ast.Attrs)
fmt.Print(">")