diff options
author | jturtle <jturtl@pm.me> | 2023-10-20 01:05:00 +0000 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-10-20 20:24:14 +0200 |
commit | d3e5212ece837168aca1ee485dd6cb0251b5b3d5 (patch) | |
tree | 648a44d9a1b4a7b69b2c024195298d7ccd2f73be /formatter | |
parent | 10d7c513c47441f9260946ecc4ccc80cdbb966d9 (diff) |
Fix printing classes and attrsv1.0.2
Well well well, here we are again.
Iterate over the `nClasses` list instead of every attr after printing
the classes.
With all due respect, you should consider writing a test suite to catch
silly errors like this.
Diffstat (limited to 'formatter')
-rw-r--r-- | formatter/formatter.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/formatter/formatter.go b/formatter/formatter.go index b8ec85f..f5d7517 100644 --- a/formatter/formatter.go +++ b/formatter/formatter.go @@ -70,7 +70,7 @@ func printAttrs(attrs []parser.Attr) { } } - for _, a := range attrs { + for _, a := range nClasses { fmt.Printf(" %s", a.Key) if a.Value != "" { fmt.Print("=\"") |