1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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 = RedCloth.new(text, [ :hard_breaks ])
textilized.hard_breaks = true if textilized.respond_to?("hard_breaks=") textilized.hard_breaks = true if textilized.respond_to?("hard_breaks=")
textilized.to_html textilized.to_html
end
end end
# Returns the text with all the Textile codes turned into HTML-tags, but without the regular bounding <p> tag. # Returns the text with all the Textile codes turned into HTML-tags, but without the regular bounding <p> tag.