fix: trim final newline on release note
All checks were successful
continuous-integration/drone/push Build is passing

Follow-up #544
This commit is contained in:
decentral1se 2025-04-22 09:23:28 +02:00
parent de009921a2
commit b3ab95750e
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -3,6 +3,7 @@ package app
import (
"context"
"fmt"
"strings"
"coopcloud.tech/abra/cli/internal"
"coopcloud.tech/abra/pkg/app"
@ -335,6 +336,11 @@ func getReleaseNotes(
}
if note != "" {
// NOTE(d1): trim any final newline on the end of the note itself before
// we manually handle newlines (for multiple release notes and
// ensuring space between the warning messages)
note = strings.TrimSuffix(note, "\n")
*upgradeReleaseNotes += fmt.Sprintf("%s\n", note)
}
}