app/models/wiki_content.rb in Pimki-1.8.092 vs app/models/wiki_content.rb in Pimki-1.8.200
- old
+ new
@@ -70,10 +70,10 @@
@options[:engine] = Engines::MAP[@web.markup] || Engines::Textile
@options[:engine_opts] = DEFAULT_OPTS[:engine_opts]
case @options[:engine].name
when 'Engines::Textile'
- if RedCloth::VERSION >= '3.0.0'
+ if %W{3.0.0 3.0.1 3.0.2 3.0.3}.include?(RedCloth::VERSION)
# RedCloth v3 changes the default behaviour from not folding lines.
@options[:engine_opts] += [:hard_breaks]
end
@options[:engine_opts] += (@web.safe_mode ? [:filter_html, :filter_styles] : [])
\ No newline at end of file