From 467f539e7818023b40a933a316ef7cc454d4b46b Mon Sep 17 00:00:00 2001 From: Adrian Hesketh Date: Sat, 16 Oct 2021 22:01:56 +0100 Subject: [PATCH] fix: format command should list success count, and respect spacing of text nodes --- cmd/templ/fmtcmd/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/templ/fmtcmd/main.go b/cmd/templ/fmtcmd/main.go index 1e831d4d5..b89f1aad5 100644 --- a/cmd/templ/fmtcmd/main.go +++ b/cmd/templ/fmtcmd/main.go @@ -25,6 +25,7 @@ func Run(args []string) (err error) { continue } fmt.Printf("%s complete in %v\n", r.FileName, r.Duration) + successCount++ } fmt.Printf("Formatted %d templates with %d errors in %s\n", successCount+errorCount, errorCount, time.Now().Sub(start)) return