Browse files

Forced newer versions of RedCloth to use hard breaks [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 810ebf7 commit f13534e65fa45a451ec0ba2df6335bec7b5d661d @dhh dhh committed Oct 2, 2005
Showing with 1 addition and 0 deletions.
  1. +1 −0 actionpack/lib/action_view/helpers/text_helper.rb
View
1 actionpack/lib/action_view/helpers/text_helper.rb
@@ -88,6 +88,7 @@ def textilize(text)
textilized = RedCloth.new(text, [ :hard_breaks ])
textilized.hard_breaks = true if textilized.respond_to?("hard_breaks=")
textilized.to_html
+ end
end
# Returns the text with all the Textile codes turned into HTML-tags, but without the regular bounding <p> tag.

0 comments on commit f13534e

Please sign in to comment.