mirror of
https://github.com/github/rails.git
synced 2026-01-26 14:58:11 -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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user