Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 168451

Summary: dev-ruby/redcloth-3.0.4 with :filter_html filters generated code, too
Product: Gentoo Linux Reporter: Carsten Luckmann <carsten>
Component: Current packagesAssignee: Michael Kohl (RETIRED) <citizen428>
Status: RESOLVED UPSTREAM    
Severity: normal CC: ruby
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Carsten Luckmann 2007-02-26 12:54:10 UTC
When using the :filter_html option of redcloth, it filters not only HTML code present in the input but also part of its generated HTML output.

On the other hand, there is some HTML code that is not filtered, even if it is in the input.

dev-ruby/redcloth-3.0.4

Reproducible: Always

Steps to Reproduce:
1. cat <<'EOI' > redcloth_filter_html.rb
#! /usr/bin/ruby18

require 'rubygems'
require 'redcloth'

puts RedCloth.new("The <b>colour</b> %(red)red%.", [:filter_html]).to_html
EOI
2. ruby redcloth_filter_html.rb
Actual Results:  
<p>The <b>colour</b>  red .</p>

Expected Results:  
<p>The colour <span class="red">red</span>.</p>

dev-ruby/redcloth-3.0.4.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2007-02-26 15:49:20 UTC
We just provide the means to install it.  You need to file bugs specific to the design with the authors of the software.

http://whytheluckystiff.net/ruby/redcloth/
http://rubyforge.org/projects/redcloth/