#120 ✓resolved
Jason Garber

Ignore space characters between blocks

Reported by Jason Garber | March 9th, 2009 @ 02:57 PM

If you have

h2. A header
and a paragraph

but there's a space on that blank line, it will fail to recognize and you'll scratch your head for hours.

Comments and changes to this ticket

  • Jason Garber

    Jason Garber March 16th, 2009 @ 04:15 PM

    • State changed from “new” to “resolved”

    (from [0142eb1eea0f723e8710b37851d58b2b6301bc51]) Ignore spaces and tabs on blank lines between blocks. [#120 state:resolved] http://github.com/jgarber/redclo...

  • Gabe da Silveira

    Gabe da Silveira October 14th, 2009 @ 03:06 AM

    I am working on some modifications to acts_as_textilized, which lets you output a plaintext version by stripping tags. I'm not sure whether it's an issue with this commit or somewhere else in history, but as of right now:

    > RedCloth.new("Test\n\nTest").to_html

    Which is problematic because after stripping tags you get:


    Even though the intent (and original text) is:

  • Jason Garber

    Jason Garber October 15th, 2009 @ 11:59 AM

    I'm slow to fix things with RedCloth these days because it seems better use of my time to work on the new version. If you're doing some custom thing and need the extra line break, I suggest you gsub

    \n with \n\n. Maybe that won't work in all situations. I can tell you right now, though, that it would be very hard to work into the current Ragel version of RedCloth. Once I get it rewritten in something better, it will be much easier. Thanks!

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

Referenced by