Tags:
create new tag
, view all tags

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 History Action Size Date Who Comment
Perl source code filepm TWiki.pm r1 manage 64.8 K 2001-09-27 - 15:02 JohnTalintyre See takeOutVerbatim ...
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-02-15 - SamHasler
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.