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
This commit is contained in:
David Heinemeier Hansson
2005-10-02 20:24:53 +00:00
parent 810ebf7c6a
commit f13534e65f

View File

@@ -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.