public Method

Format.paragraphs(to_wrap = nil)

Considers each element of text (provided or internal) as a paragraph. If #first_indent is the same as #body_indent, then paragraphs will be separated by a single empty line in the result; otherwise, the paragraphs will follow immediately after each other. Uses #format to do the heavy lifting.

Source Code

# File action_mailer/vendor/text-format-0.6.3/text/format.rb, line 902
def paragraphs(to_wrap = nil)
  to_wrap = @text if to_wrap.nil?
  __paragraphs([to_wrap].flatten)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.