Skip to content

Commit

Permalink
Merge pull request #10883 from bastianbeier/fix/missing-new-lines-gro…
Browse files Browse the repository at this point in the history
…uped-email

fix: Missing new lines in grouped email
  • Loading branch information
bastianbeier authored Jan 16, 2025
2 parents 9591346 + a34b0b2 commit c9c42e9
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

https://github.com/owncloud/ocis/pull/10883
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 c9c42e9

Please sign in to comment.