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:
parent
810ebf7c6a
commit
f13534e65f
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue