aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-02 20:24:53 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-02 20:24:53 +0000
commitf13534e65fa45a451ec0ba2df6335bec7b5d661d (patch)
treea50845bf849a08dcc44a586f8cdbe215a84bba90 /actionpack/lib
parent810ebf7c6a2e9d02f76d8727e56c1706cc6ff66e (diff)
downloadrails-f13534e65fa45a451ec0ba2df6335bec7b5d661d.tar.gz
rails-f13534e65fa45a451ec0ba2df6335bec7b5d661d.tar.bz2
rails-f13534e65fa45a451ec0ba2df6335bec7b5d661d.zip
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
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb1
1 files changed, 1 insertions, 0 deletions
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 <p> tag.