diff options
author | Jamis Buck <jamis@37signals.com> | 2005-07-06 09:53:34 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-07-06 09:53:34 +0000 |
commit | bde3df2bec99103eeb91c4caaf0483aacadccd92 (patch) | |
tree | ca066ea3db87908f122675b3481a3f5c25ee2665 /actionmailer/lib/action_mailer/vendor | |
parent | 853ea556749809658c0a5c0c8b61263ec022fba1 (diff) | |
download | rails-bde3df2bec99103eeb91c4caaf0483aacadccd92.tar.gz rails-bde3df2bec99103eeb91c4caaf0483aacadccd92.tar.bz2 rails-bde3df2bec99103eeb91c4caaf0483aacadccd92.zip |
Correctly normalize newlines in outgoing emails before encoding the body [John Long]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1732 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionmailer/lib/action_mailer/vendor')
-rwxr-xr-x | actionmailer/lib/action_mailer/vendor/tmail/mail.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/actionmailer/lib/action_mailer/vendor/tmail/mail.rb b/actionmailer/lib/action_mailer/vendor/tmail/mail.rb index f4a42df19b..9111a65042 100755 --- a/actionmailer/lib/action_mailer/vendor/tmail/mail.rb +++ b/actionmailer/lib/action_mailer/vendor/tmail/mail.rb @@ -335,13 +335,9 @@ module TMail } end - def normalize_line_endings(text) - text.to_s.gsub(/\r\n?/, "\n") - end - def body=( str ) parse_body - @body_port.wopen {|f| f.write normalize_line_endings(str) } + @body_port.wopen {|f| f.write str } str end |