Skip to content

Commit

Permalink
fix: Missing new lines in grouped email
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianbeier committed Jan 16, 2025
1 parent b4586aa commit dce8668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-grouped-email-missing-newline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Fix missing newline in grouped email

`\n` is now replaced by `<br>` in the HTML email body

TODO
2 changes: 1 addition & 1 deletion services/notifications/pkg/email/composer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func NewGroupedHTMLTemplate(gmt GroupedMessageTemplate, vars map[string]string,
}
bodyParts = append(bodyParts, bodyPart)
}
gmt.MessageBody = strings.Join(bodyParts, "<br><br><br>")
gmt.MessageBody = newlineToBr(strings.Join(bodyParts, "<br><br><br>"))

return gmt, nil
}
Expand Down

0 comments on commit dce8668

Please sign in to comment.