aboutsummaryrefslogtreecommitdiff
path: root/formatter/formatter.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-04-18 10:46:14 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-04-18 10:50:46 +0200
commite3740eb9075594d8a2e6e026c542b27f01fe8e9b (patch)
tree4a2dce9e21992d144cd6e3036c6de1d2b221b411 /formatter/formatter.go
parentbdcef09b529024e616e9400b110ee5b712db29ed (diff)
Add support for commentsv3.1.0
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(">")