• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7217: %VARIABLE{default="..."}% in a verbatim block is converted into %VARIABLE% when INCLUDEd

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed   major 6.0.0

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

TWikiVariables#Example shows
   * Set DRINK = red wine
   * Set FAVORITE = My %DEFAULT% dish is %DISH%,
                    my %DEFAULT% drink is %DRINK%.
even though it's included from ParameterizedVariables, whose corresponding part is as follows.
   * Set DRINK = red wine
   * Set FAVORITE = My %DEFAULT{default="favorite"}% dish is %DISH{default="steak"}%,
                    my %DEFAULT{default="favorite"}% drink is %DRINK%.
This is happening because in TWiki::INCLUDE(), %VARIABLE{default="..."}% is converted into %VARIABLE% even inside verbatim blocks.

Taking out verbatim block before the processing and then putting them back solve the problem.

-- TWiki:Main/HideyoImazu - 2013-04-08

ItemTemplate
Summary %VARIABLE{default="..."}% in a verbatim block is converted into %VARIABLE% when INCLUDEd
ReportedBy TWiki:Main.HideyoImazu
Codebase ~twiki4
SVN Range TWiki-5.1.3-trunk, Fri, 05 Apr 2013, build 25666
AppliesTo Engine
Component

Priority Normal
CurrentState Closed
WaitingFor

Checkins TWikirev:25719 TWikirev:25720
TargetRelease major
ReleasedIn 6.0.0
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r7 - 2013-10-15 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback