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