lib/webgen/contentprocessor/redcloth.rb in gettalong-webgen-0.5.7.20090227 vs lib/webgen/contentprocessor/redcloth.rb in gettalong-webgen-0.5.8.20090507

- old
+ new

@@ -6,10 +6,12 @@ class RedCloth # Convert the content in +context+ to HTML. def call(context) require 'redcloth' - context.content = ::RedCloth.new(context.content).to_html + doc = ::RedCloth.new(context.content) + doc.hard_breaks = context.website.config['contentprocessor.redcloth.hard_breaks'] + context.content = doc.to_html context end end