fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2011-02-21 08:12 am

[bml] %%vars%% have stopped being printed on Crosspost Settings

[commit: http://hg.dwscoalition.org/bml/rev/3cb087506997]

http://bugs.dwscoalition.org/show_bug.cgi?id=3518

Flag to avoid final expansion, so that page text with %% is not interpreted
as BML.

Patch by [personal profile] exor674.

Files modified:
  • lib/Apache/BML.pm
--------------------------------------------------------------------------------
diff -r 083aff17c625 -r 3cb087506997 lib/Apache/BML.pm
--- a/lib/Apache/BML.pm	Tue Feb 15 12:00:29 2011 +0800
+++ b/lib/Apache/BML.pm	Mon Feb 21 15:14:03 2011 +0800
@@ -946,6 +946,9 @@ sub bml_block
 
         pop @{$req->{'BlockStack'}};
     }
+
+    # t == no final expand, required in tt-runner
+    return $expanded if (index($blockflags, 't') != -1);
 
     $expanded = parsein($expanded, \%element) if $preparsed;
     return $expanded;
--------------------------------------------------------------------------------
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2011-02-21 08:35 am (UTC)(link)
Just so that people are aware - there was also another patch on this topic, http://hg.dwscoalition.org/dw-free/rev/c91c75c581b8 , which didn't get a changelog entry due to a mistake made when committing it. :)