[RESTORES BUILD] RedCloth does not support hard breaks in mixed mode

This commit is contained in:
Alexey Verkhovsky 2005-04-10 17:57:24 +00:00
parent a251b658f1
commit 5c97cc593e
2 changed files with 5 additions and 3 deletions

View file

@ -43,7 +43,7 @@ module Engines
class Mixed < AbstractEngine
def mask
RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts]).to_html(
RedCloth.new(@content, @content.options[:engine_opts]).to_html(
:textile, :markdown)
end
end
@ -54,6 +54,6 @@ module Engines
end
end
MAP = { :textile => Textile, :markdown => Markdown, :mixed => Mixed, :rdoc => RDoc, }
MAP = { :textile => Textile, :markdown => Markdown, :mixed => Mixed, :rdoc => RDoc }
MAP.default = Textile
end