r5 - 15 Feb 2005 - 22:43:37 - SamHaslerYou are here: TWiki >  Codev Web > NestedVerbatimTags
Tags:
, create new tag

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 &lt;
  • 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

Topic attachments
I Attachment Action Size Date Who Comment
plpm TWiki.pm manage 64.8 K 27 Sep 2001 - 15:02 JohnTalintyre See takeOutVerbatim ...
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r5 < r4 < r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo