Skip to content

Commit

Permalink
Fix: Line returns in email sending in lib/email
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Sep 12, 2016
1 parent 64f16d2 commit 800bdaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -630,3 +630,4 @@ No changes. Erroneous version bump.

* Load front end components from npm/git and build script
* Update front end components to latest
* Fix: Line returns in email sending in `lib/email`
2 changes: 1 addition & 1 deletion lib/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ _.extend(Mailer.prototype, {
}

// make all line returns \r\n
message.text = message.text.replace(/\n/g, '\r\n').replace(/\r\r/g, '\r');
message.text = message.text.replace(/\r\n/g, '\n').replace(/\r/g, '\n').replace(/\n/g, '\r\n');

// compile message in mandrill format
message.from_email = message.from.email; // jshint ignore:line
Expand Down

0 comments on commit 800bdaf

Please sign in to comment.