
Parentheses improperly recognized as class info
Reported by VirtualFunction | June 26th, 2008 @ 11:42 PM | in 4.0
Attached shows a corner case I discovered where I wanted to illustrate a method call with latex formatting.
I was baffled to why it was not showing more than the trailing semi colon. I later tried running to_html and it became obvious the the brackets are making the scanner see them as white space when there is no white space in the formatted inline around them.
As stated, this seems to be a bit of a corner case in the sense it requires a number of conditions to be meet to trigger this. However, for programmers who are using RedCloth snippets from C-like language, I do think this will make this issue more apparent.
Comments and changes to this ticket
-
Jason Garber July 7th, 2008 @ 02:59 PM
- Title changed from Inline's with with no whitespace sometimes fails to Parentheses improperly recognized as class info
The problem is that the new attributes scanner allows text to come before the class/id/style info.
-
Jason Garber July 7th, 2008 @ 03:00 PM
- State changed from new to resolved
(from [ce2cf0a9b05526f73dfeb1287ca87ae6462f3009]) Fix parentheses being improperly recognized as class info. [#7 state:resolved]
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
Attachments
Referenced by
-
4 Segfault with links #7 0x00007f6f37aad5fe in redcloth_inline2 (self=1401156...