#43 ✓ resolved
Zubin

caps wrapped in parentheses are missed

Reported by Zubin | August 19th, 2008 @ 09:53 PM | in 4.0.4


irb> require "redcloth"
irb> txt = "The Royal Society for Putting Things on Top of Other Things (RSFPTOTOOT)"
irb> RedCloth.new(txt).to_html
=> "<p>The Royal Society for Putting Things on Top of Other Things (RSFPTOTOOT)</p>"

Should be:
=> "<p>The Royal Society for Putting Things on Top of Other Things (<span class=\"caps\">RSFPTOTOOT</span>)</p>"

Comments and changes to this ticket

  • VirtualFunction

    VirtualFunction August 25th, 2008 @ 10:56 AM

    This is interesting because firstly I think it's a little subjective whether this is a bug.

    Looking at the behavior of 3.x, it appears that it doesn't do any form of span caps if you put brackets round.

    Likewise using the official Textile reference, at http://textile.thresholdstate.com/ this also does not include the brackets in the span tags, so I would say this is by design behavior.

    It's down to Jason or Why though to have the final say

  • Jason Garber

    Jason Garber September 16th, 2008 @ 04:06 PM

    • State changed from “new” to “open”
    • Tag changed from caps, parser, typography to caps, parser, typography

    I think, since Textile 2 puts caps that appear in parentheses in the caps span, we should too. I'm accepting this as a bug.

  • Jason Garber

    Jason Garber September 16th, 2008 @ 04:34 PM

    • State changed from “open” to “resolved”

    (from [56b0b3d1bf827498620bbd1ab4441a2748a98c50]) Fix missed caps wrapped in parentheses. [#43 state:resolved] http://github.com/jgarber/redclo...

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

Pages