Line breaks cause <br/> in Textile again

This commit is contained in:
Alexey Verkhovsky 2005-04-09 02:49:55 +00:00
parent ab60287bad
commit b9ec3ee4b2

View file

@ -27,7 +27,7 @@ module Engines
class Textile < AbstractEngine
def mask
RedCloth.new(@content, @content.options[:engine_opts]).to_html(:textile)
RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts]).to_html(:textile)
end
end
@ -39,7 +39,7 @@ module Engines
class Mixed < AbstractEngine
def mask
RedCloth.new(@content, @content.options[:engine_opts]).to_html
RedCloth.new(@content, [:hard_breaks] + @content.options[:engine_opts]).to_html
end
end