#165 new
sulo

Redcloth does not ignore stuff in pre tags

Reported by sulo | August 9th, 2009 @ 11:04 AM

Hi,

I'm trying to use RedCloth with Coderay... the problem is that redcloth puts after each line of highlighted code a br which results in blank lines.
I'dont relly get it cos the code that gets generated by coderay is wrapped in pre tags...

like:

<table class="CodeRay"><tbody><tr><td class="line_numbers" title="click to toggle" onclick="with (this.firstChild.style) { display = (display == '') ? 'none' : '' }"><pre>1<tt><br>
</tt>2<tt><br>
</tt>3<tt><br>
</tt>4<tt><br>


</tt></pre></td> <td class="code"><pre ondblclick="with (this.style) { overflow = (overflow == 'auto' || overflow == '') ? 'visible' : 'auto' }"> puts <span class="s"><span class="dl">"</span><span class="k">gnah</span><span class="dl">"</span></span><tt><br> </tt><span class="r">if</span> <span class="s"><span class="dl">"</span><span class="k">huhu</span><span class="dl">"</span></span><tt><br> </tt> puts <span class="s"><span class="dl">"</span><span class="k">moep</span><span class="dl">"</span></span><tt><br>


</tt><span class="r">end</span><tt><br> </tt></pre></td> </tr></tbody></table>
sry for the bad indenting...

but you see... the
s after the tt tags shouldn't be there...

regards Sulo

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RedCloth is a Ruby library for converting Textile into HTML

Shared Ticket Bins

People watching this ticket

Pages