Skip to content
Browse files

Merge pull request #2571 from JangoSteve/3-0-mailer-simple-paragraph

3.0.10 MailHelper.simple_paragraph
  • Loading branch information...
2 parents 4f15f39 + 0bbeedc commit 75cb92ae525bf89d5088ee8bf85bde710426b752 @josevalim josevalim committed Aug 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionmailer/lib/action_mailer/mail_helper.rb
View
4 actionmailer/lib/action_mailer/mail_helper.rb
@@ -4,7 +4,7 @@ module MailHelper
# each line, and wrapped at 72 columns.
def block_format(text)
formatted = text.split(/\n\r\n/).collect { |paragraph|
- simple_format(paragraph)
+ format_paragraph(paragraph)
}.join("\n")
# Make list points stand on their own line
@@ -30,7 +30,7 @@ def attachments
end
private
- def simple_format(text, len = 72, indent = 2)
+ def format_paragraph(text, len = 72, indent = 2)
sentences = [[]]
text.split.each do |word|

0 comments on commit 75cb92a

Please sign in to comment.
Something went wrong with that request. Please try again.