1
0
Fork 0
mirror of https://github.com/Luzifer/git-changerelease.git synced 2024-12-20 19:11:17 +00:00

Fix: Remove whitespace from old log

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-11-11 15:29:38 +01:00
parent 810e271c3b
commit 4f23c1ae0d
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -207,7 +207,7 @@ func renderLogAndGetVersion(newVersion *semVer, logs []commit) (*semVer, error)
NextVersion: newVersion, NextVersion: newVersion,
Now: time.Now(), Now: time.Now(),
LogLines: logs, LogLines: logs,
OldLog: oldLog, OldLog: strings.TrimSpace(oldLog),
}) })
if err != nil { if err != nil {
return nil, fmt.Errorf("rendering log: %w", err) return nil, fmt.Errorf("rendering log: %w", err)