#9 ✓resolved

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

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