
percent sign oddness
Reported by Jason | September 4th, 2008 @ 03:08 PM | in 4.0.4
I'm not sure this is the expected behavior for the %span% feature... then again, maybe it is...
http://blah.com/one%20two%20three
(min)5%-95%(max)
produces this in 3.x:
<p>http://blah.com/one%20two%20three<br/>
(min)5%-95%(max)</p>
and this in 4.x:
<p>http://blah.com/one<span>20two</span>20three<br/>
(min)5<span>-95</span>(max)</p>
Incidentally, this does work (as I would expect it to):
"link":http://blah.com/one%20two%20three
Comments and changes to this ticket
-
Jason September 4th, 2008 @ 03:57 PM
Seems twiddles can do the same thing, as in
http://blah.com/weird~ass~1~url~...
. -
Mezza September 8th, 2008 @ 04:43 AM
I'm also seeing this, but in a slightly different context.
This is an example of some input for which the generated HTML is incorrect:
"Spawning stock biomass is currently estimated to be near historic lows, although total biomass is high. However, SSB~2008~ levels (1.1 million mt) relates to a relative depletion of about 38%, only slightly below the management target of B~40%~.\n"
=>
Spawning stock biomass is currently estimated to be near historic lows, although total biomass is high. However, SSB2008 levels (1.1 million mt) relates to a relative depletion of about 38, only slightly below the management target of B~40~.
This can be worked around by inserting a space between the initial '%' and the following ',':
"Spawning stock biomass is currently estimated to be near historic lows, although total biomass is high. However, SSB~2008~ levels (1.1 million mt) relates to a relative depletion of about 38% , only slightly below the management target of B~40%~.\n"
=>
Spawning stock biomass is currently estimated to be near historic lows, although total biomass is high. However, SSB2008 levels (1.1 million mt) relates to a relative depletion of about 38% , only slightly below the management target of B40%.
Or also by inserting a space before the second '%':
"Spawning stock biomass is currently estimated to be near historic lows, although total biomass is high. However, SSB~2008~ levels (1.1 million mt) relates to a relative depletion of about 38%, only slightly below the management target of B~40 %~.\n\n"
=>
Spawning stock biomass is currently estimated to be near historic lows, although total biomass is high. However, SSB2008 levels (1.1 million mt) relates to a relative depletion of about 38%, only slightly below the management target of B40 %.
I presume the issue in my case at least is down to the handling of punctuation characters immediately after textile markup characters.
-
Jason Garber September 19th, 2008 @ 02:46 PM
- State changed from new to resolved
(from [a799b8893e80c17a02ea374118008aeb331bf957]) Made percent signs less greedy. They must surround a phrase or else they must be surrounded with square brackets, just like sup, sub, and del phrases.
[#47 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.
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
People watching this ticket
Referenced by
-
47 percent sign oddness [#47 state:resolved] http://github.com/jgarber/redclo...