From fd27788782dc0ec6c653f6e6a50b20567d768402 Mon Sep 17 00:00:00 2001 From: Nikola Ubavic <53820106+ubavic@users.noreply.github.com> Date: Sat, 7 Dec 2024 19:29:55 +0100 Subject: [PATCH] Remove new line from version string --- internal/gui/about.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/gui/about.go b/internal/gui/about.go index 1439842..1697d77 100644 --- a/internal/gui/about.go +++ b/internal/gui/about.go @@ -5,6 +5,7 @@ import ( "fmt" "net/http" "net/url" + "strings" "time" "fyne.io/fyne/v2" @@ -16,6 +17,8 @@ import ( ) func showAboutBox(win fyne.Window, version string) func() { + version = strings.TrimSpace(version) + verLabel := widget.NewLabelWithStyle(t("about.version")+": "+version, fyne.TextAlignLeading, fyne.TextStyle{Italic: true}) moreLabel := widget.NewLabel(t("about.moreAboutProgram")) url, _ := url.Parse("https://github.com/ubavic/bas-celik")