From a3c98444873a154f909365cb1b82a5b3ecc740c6 Mon Sep 17 00:00:00 2001 From: Drew Weymouth Date: Thu, 17 Apr 2025 08:18:53 -0700 Subject: [PATCH] remove newlines from track comments in list display --- ui/widgets/tracklistrow.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/widgets/tracklistrow.go b/ui/widgets/tracklistrow.go index 90fd7fd..05f4ead 100644 --- a/ui/widgets/tracklistrow.go +++ b/ui/widgets/tracklistrow.go @@ -4,6 +4,7 @@ import ( "fmt" "image" "strconv" + "strings" "sync" "time" @@ -393,7 +394,7 @@ func (t *tracklistRowBase) doUpdate(tm *util.TrackListModel, rowNum int) { t.dur.Text = util.SecondsToMMSS(float64(tr.Duration)) t.year.Text = strconv.Itoa(tr.Year) t.plays.Text = strconv.Itoa(int(tr.PlayCount)) - t.comment.Text = tr.Comment + t.comment.Text = strings.ReplaceAll(tr.Comment, "\n", " ") t.comment.SetToolTip(tr.Comment) t.bitrate.Text = strconv.Itoa(tr.BitRate) t.size.Text = util.BytesToSizeString(tr.Size)