You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jo...@apache.org on 2014/03/19 13:12:31 UTC
svn commit: r1579202 - /thrift/cms-site/trunk/lib/path.pm
Author: joes
Date: Wed Mar 19 12:12:30 2014
New Revision: 1579202
URL: http://svn.apache.org/r1579202
Log:
sketch snippet preprocessor support
Modified:
thrift/cms-site/trunk/lib/path.pm
Modified: thrift/cms-site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/path.pm?rev=1579202&r1=1579201&r2=1579202&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/path.pm (original)
+++ thrift/cms-site/trunk/lib/path.pm Wed Mar 19 12:12:30 2014
@@ -55,7 +55,7 @@ sub thrift_preprocessor {
$args{content} =~ s{\[XXXsnippet:([^\]]+)\]}
{
my $template = $1;
- my %a = map split /=/, split /:/, $template;
+ my %a = map {split /=/} split /:/, $template;
$args{$key} = ASF::Value::Snippet->new(template => $url_template, %a);
$key++ . ".list.$a{index}";
}ge;