Bug: Verbatim can't handle it's own tags
Test case
- Have some code enclosed in verbatim tags, within these code include another set of verbatim tags
Fix record
On my local environment I'm busy patching
TWiki.pm. Now it looks for
verbatim anywhere on the line, I'm changing this to be the only thing on the line. Sofar I've succeeded in "not noticing" if verbatim is included with some other texts, but not when it's nested. I'll update this page when finished...
I've combined the fix I did for
VerbatimExpandsVariables to:
- deal with nesting in <verbatim>
- display verbatim by converting < to <;
- On rendering there is a choice of removing verbatim before or after plugins get a lookin with
startRenderingHandler and putting it back after or before endRenderingHandler. At present I haven't extended this to dealing with <pre> handling, but it does make me wonder if plugin need to be able to process data in pre and verbatim areas.
Is this approach of stripping out verbatim area before variable expansion and rendering sensible?
Modified
TWiki.pm attached.
--
JohnTalintyre - 27 Sep 2001
Environment
| TWiki version: |
Beta 25 Aug 2001 |
| TWiki plugins: |
Defaults |
| Server OS: |
WinNT |
| Web server: |
Apache |
| Perl version: |
5.6 |
| Client OS: |
WinNT |
| Web Browser: |
IE 5 |
--
HansDonner - 26 Aug 2001
Fix commited to CVS.
--
JohnTalintyre - 09 Jan 2002