aboutsummaryrefslogtreecommitdiff
path: root/formatter
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-09-09 13:59:03 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-09-09 13:59:03 +0200
commit96aef4c6a473e380b027a7b9db87cbbbcbae1cba (patch)
treebba1e01ed6d91c37a9fe91c4da783e781d56cfcd /formatter
parent18fcfbb8604110e3b533781e7d94ace35d6d8ea8 (diff)
Fix bug when key has no value
Diffstat (limited to 'formatter')
-rw-r--r--formatter/formatter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/formatter/formatter.go b/formatter/formatter.go
index 5eae8b7..7d44891 100644
--- a/formatter/formatter.go
+++ b/formatter/formatter.go
@@ -46,7 +46,7 @@ func PrintHtml(ast parser.AstNode) {
for _, a := range notClasses {
fmt.Printf(" %s", a.Key)
if a.Value == "" {
- break
+ continue
}
fmt.Print("=\"")
for _, r := range a.Value {