Package: webgen0.4 Version: 0.4.7-2 Severity: important Tags: patch Hello,
Recent versions of libredcloth-ruby add <br /> tags for every line break in the source file. That pretty much breaks all output of webgen0.4 (see bug #524929, tagged wontfix). The fix is simple, see the attached patch. Cheers ! Vincent -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1) Shell: /bin/sh linked to /bin/dash Versions of packages webgen0.4 depends on: ii libcmdparse2-ruby 2.0.2-2 Advanced command line parsing modu ii rdoc 4.2 Generate documentation from ruby s ii ruby 4.2 An interpreter of object-oriented Versions of packages webgen0.4 recommends: pn libbluecloth-rub <none> (no description available) pn libbuilder-ruby <none> (no description available) pn libexif-ruby <none> (no description available) ii libredcloth-ruby 3.0.99.0.svn.20060519-1 Textile module for Ruby pn librmagick-ruby <none> (no description available) ii webgen0.4-doc 0.4.7-2 A template based static website ge webgen0.4 suggests no packages. -- no debconf information
diff -u webgen0.4-0.4.7/debian/changelog webgen0.4-0.4.7/debian/changelog only in patch2: unchanged: --- webgen0.4-0.4.7.orig/lib/webgen/plugins/contentconverters/textile.rb +++ webgen0.4-0.4.7/lib/webgen/plugins/contentconverters/textile.rb @@ -41,7 +41,10 @@ register_handler 'textile' def call( content ) - RedCloth.new( content ).to_html + converter = RedCloth.new( content ) + # Cope for both old and new behavior of Textile... + converter.hard_breaks = false + converter.to_html rescue Exception => e log(:error) { "Error converting Textile text to HTML: #{e.message}" } content