• 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.

Item4005: improved way to determine macro start

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension RecursiveRenderPlugin Enhancement New   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


I would prefer to change the way it fetches the ~macro tag: instead of \n use ^, so one can put a macro definition in the very first line as well.
--- R   2003-01-21 22:54:00.000000000 +0100
+++ RecursiveRenderPlugin.pm    2006-01-16 11:10:01.486648500 +0100
@@ -114,7 +114,7 @@
     # This handler is called by getRenderedVersion just before the line loop

     # read in ~macros
-    while ($_[0] =~ s/\n~([^\n]*)\n(.*?)\n~~(?=\n)//s) {
+    while ($_[0] =~ s/^~([^\n]*)\n(.*?)\n~~(?=\n)//s) {
         my $macroName = $1;
         my $macroText = TWiki::Func::renderText($2, $_[1], $_[2]);
        $macroText =~ s/~(?=$macroName)/~<nop>/g; # no direct recursion
-- AndrasSzell - 16 Jan 2006

Note that this fix breaks the plugin. Not sure why yet as it appeared to be correct.

-- TWiki:Main.RickMach - 15 May 2007

Regraded to New - this is not being worked on, AFAICT.


Summary improved way to determine macro start
ReportedBy TWiki:Main.AndrasSzell

SVN Range TWiki-4.1.2, Fri, 27 Apr 2007, build 13539
AppliesTo Extension
Component RecursiveRenderPlugin
Priority Enhancement
CurrentState New

Checkins TWikirev:13601 TWikirev:13602
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2007-05-28 - TWikiUserMapping_CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback