Skip to content

Commit

Permalink
Merge pull request rails#2571 from JangoSteve/3-0-mailer-simple-parag…
Browse files Browse the repository at this point in the history
…raph

3.0.10 MailHelper.simple_paragraph
  • Loading branch information
josevalim committed Aug 17, 2011
2 parents 4f15f39 + 0bbeedc commit 75cb92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionmailer/lib/action_mailer/mail_helper.rb
Expand Up @@ -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
Expand All @@ -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|
Expand Down

0 comments on commit 75cb92a

Please sign in to comment.