1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
This commit is contained in:
Santiago Pastorino 2011-03-09 20:17:30 -02:00
parent 8e73e589a8
commit 51a269b228

View file

@ -35,7 +35,7 @@ module ActionMailer
# #
# my_text = "Here is a sample text with more than 40 characters" # my_text = "Here is a sample text with more than 40 characters"
# #
# simple_format(my_text, 25, 4) # format_paragraph(my_text, 25, 4)
# # => " Here is a sample text with\n more than 40 characters" # # => " Here is a sample text with\n more than 40 characters"
def format_paragraph(text, len = 72, indent = 2) def format_paragraph(text, len = 72, indent = 2)
sentences = [[]] sentences = [[]]