From f13534e65fa45a451ec0ba2df6335bec7b5d661d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 2 Oct 2005 20:24:53 +0000 Subject: [PATCH] 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 --- actionpack/lib/action_view/helpers/text_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index efb7922f76..79ba4ea240 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -88,6 +88,7 @@ module ActionView 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

tag.