
Nested \begin{verbatim} ... \end{verbatim} illegal in Latex
Reported by VirtualFunction | June 27th, 2008 @ 12:37 AM | in 4.0
Sorry, when I just thought I got that code bug fixed, I managed to find another similar one (You must cursing me for all the last minute bugs I've recently found that you need to sort out before the initial release!)
After fixing bug #8, I needed to update a failing test case to reflect the changes. It appears after running the expected result in pdflatex that it dislikes the nesting caused by the code and pre chunks.
The obvious fix to this in my eyes is to delegate section creation to private method(s), which increments a member variable counter for begin commands and decrements it end commands. When the counter is 0 begin and end commands are sent returned, otherwise an empty string is returned. While you could argue the in-line verbatim sections don't need to be delegated (because they aren't nested), we should still do this for in-line verbatim items in my option because someone might have done this from a block code section, e.g:
bc. some verbatim
code
If I get time, I'll try and put a fix up for you to pull/merge in the next day or so.
Comments and changes to this ticket
-
VirtualFunction June 27th, 2008 @ 12:38 AM
Just to make it clear for the example as I keep forgetting this consumes textile... (White space added for illustration)
bc. some @ verbatim @ code
-
Jason Garber June 27th, 2008 @ 11:10 AM
- State changed from new to resolved
(from [bd07070c35f0b5bb95ae2929ea10f22a93551d1a]) Modified verbatim formatting to prevent nesting
[#9 state:resolved]
-
Jason Garber June 27th, 2008 @ 01:41 PM
- State changed from resolved to open
- Tag set to latex
Re-reading the ticket: the inline code (@) in bc needs to be tested.
-
Jason Garber July 7th, 2008 @ 02:41 PM
(from [51f579c95b29a1c3baa1840d7b8ee7920228fc41]) Verifying that @ code tokens aren't allowed in bc. [#9 state: resolved]
-
Jason Garber July 7th, 2008 @ 02:42 PM
- State changed from open to resolved
um, resolved. Must not have liked my space in there.
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
Tags
Referenced by
-
4 Segfault with links #9 0x00007f6f37aae1dc in redcloth_transform (self=14011...