stable

Clone or download

Read-only

request #18839: HTML notifications on pull request comments does not take newlines into account

The issue is resolved by adding a new helper 'nl2br' to the Mustache engine. Change-Id: Iba5a64eb642de1833860cb3b18f59955cf3efc1e

Modified Files

Name
M plugins/pullrequest/templates/comment/pull-request-new-comment-mail-content.mustache +1 −1 Go to diff View file
M plugins/pullrequest/templates/comment/pull-request-new-inline-comment-mail-content.mustache +1 −1 Go to diff View file
A src/common/templating/mustache/LineBreakHelper.php +33 −0 Go to diff View file
M src/common/templating/mustache/MustacheEngine.php +7 −3 Go to diff View file
A tests/unit/common/Templating/Mustache/LineBreakHelperTest.php +44 −0 Go to diff View file
M tests/unit/common/Templating/Mustache/MustacheEngineTest.php +1 −0 Go to diff View file