method
block_format
v7.0.0 -
Show latest stable
- Class:
ActionMailer::MailHelper
block_format(text)public
Take the text and format it, indented two spaces for each line, and wrapped at 72 columns:
text = <<-TEXT This is the paragraph. * item1 * item2 TEXT block_format text # => " This is the paragraph.\n\n * item1\n * item2\n"