Item4005: improved way to determine macro start

pencil
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: RecursiveRenderPlugin
Branches:
Reported By: TWiki:Main.AndrasSzell
Waiting For:
Last Change By: GeorgeClark
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.

CC

Plugin never released on foswiki. Ancient history, changing to "No Action".

-- Main.GeorgeClark - 25 Sep 2016 - 19:04

ItemTemplate edit

Summary improved way to determine macro start
ReportedBy TWiki:Main.AndrasSzell
Codebase
SVN Range TWiki-4.1.2, Fri, 27 Apr 2007, build 13539
AppliesTo Extension
Component RecursiveRenderPlugin
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins TWikirev:13601 TWikirev:13602
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r6 - 25 Sep 2016, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy