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:
parent
cd5c1ba3e5
commit
e1728ee0bc
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue