fix: use double-quoted string for newline in todayLine

Raw backtick strings treat \n as literal characters, not a newline.
Switch the closing to a double-quoted string so the newline renders
correctly in the email.
This commit is contained in:
kolaente 2026-04-07 21:06:18 +02:00
parent cd5c1ba3e5
commit e1728ee0bc
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ func (n *DailyTasksReminderNotification) ToMail(lang string) *notifications.Mail
todayLine := ""
for _, task := range sortedToday {
todayLine += `* [` + task.Title + `](` + config.ServicePublicURL.GetString() + "tasks/" + strconv.FormatInt(task.ID, 10) + `) (` + n.Projects[task.ProjectID].Title + `)\n`
todayLine += `* [` + task.Title + `](` + config.ServicePublicURL.GetString() + "tasks/" + strconv.FormatInt(task.ID, 10) + `) (` + n.Projects[task.ProjectID].Title + ")\n"
}
subject := i18n.T(lang, "notifications.task.overdue.multiple_subject")