#225 new
George Hartzell

pre.. creates a series of <pre></pre> elements instead of a single continuous unit.

Reported by George Hartzell | July 1st, 2011 @ 07:46 PM

Hey George. For extended blocks in general, that's the way Textile is. I
would like to change it in collaboration with the PHP people, but I have
been mimicing the behavior of the PHP Textile library, which repeats inner
things within an extended block. For example:

bc.. Some code

More code

p. But now a paragraph

Results in

Some code
More code

But now a paragraph

(Tested using http://textile.sitemonks.com/)

However, I just tried your example and the behavior is unique to RedCloth!
Must be emergent from the other behavior. PHP Textile does extended pre
blocks properly.

So, I need to fix it as part of the rewrite that's underway. Just to be sure
it gets fixed, could you file a bug report on LighthouseApp?

Thanks!
Jason

On Thu, Jun 30, 2011 at 3:10 PM, George Hartzell hartzell@alerce.comwrote:

Hi Jason,

Thanks for making Redcloth available. I've come to it via nanoc, a "static web site compiler".

As I learn new tricks I've stumbled on something that confuses me, and don't know if it's a textile thing, a redcloth thing, or a bug. Hopefully you can shed a little light.

Imagine I have some css defined that wraps a border around my

elements and adds a pink background (just an example, really...).

I'd hoped that the following would give me a box around 3 lines of stuff:

pre.. All monospaced

Even the blank lines

p. But now a paragraph

but instead I end up with two

elements backed up against each other with a line down the middle (the top and bottom borders of the sibling pre elements).
All monospaced
Even the blank lines

But now a paragraph

Is this an artifact of how things are done, or is it supposed to be this way?

Thanks,

g.

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