From eddc94929564b9927dd5c8bc272768ea4fd85edd Mon Sep 17 00:00:00 2001 From: Misite Bao Date: Sat, 1 Apr 2023 15:22:27 +0800 Subject: [PATCH] fix: fix console printing (#2483) --- v2/cmd/wails/main.go | 2 +- v2/pkg/commands/build/build.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/cmd/wails/main.go b/v2/cmd/wails/main.go index 7a09559e9..a0a7d4a31 100644 --- a/v2/cmd/wails/main.go +++ b/v2/cmd/wails/main.go @@ -41,7 +41,7 @@ func printBulletPoint(text string, args ...any) { fatal(err.Error()) } t = strings.Trim(t, "\n\r") - pterm.Printf(t, args...) + pterm.Printfln(t, args...) } func printFooter() { diff --git a/v2/pkg/commands/build/build.go b/v2/pkg/commands/build/build.go index fe8f926f5..cad768fa2 100644 --- a/v2/pkg/commands/build/build.go +++ b/v2/pkg/commands/build/build.go @@ -207,7 +207,7 @@ func printBulletPoint(text string, args ...any) { fatal(err.Error()) } t = strings.Trim(t, "\n\r") - pterm.Printf(t, args...) + pterm.Printfln(t, args...) } func GenerateBindings(buildOptions *Options) error {