From b9ec3ee4b2d690b8fee2b7f0ebae96fe72a4769f Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Sat, 9 Apr 2005 02:49:55 +0000 Subject: [PATCH] Line breaks cause
in Textile again --- app/models/chunks/engines.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/chunks/engines.rb b/app/models/chunks/engines.rb index b5587b3f..8e9e08ce 100644 --- a/app/models/chunks/engines.rb +++ b/app/models/chunks/engines.rb @@ -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