Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168451 - dev-ruby/redcloth-3.0.4 with :filter_html filters generated code, too
Summary: dev-ruby/redcloth-3.0.4 with :filter_html filters generated code, too
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Michael Kohl (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-26 12:54 UTC by Carsten Luckmann
Modified: 2007-02-26 15:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/