From 96aef4c6a473e380b027a7b9db87cbbbcbae1cba Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sat, 9 Sep 2023 13:59:03 +0200 Subject: Fix bug when key has no value --- formatter/formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3