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 20:32:45 UTC

svn commit: r1579365 - /thrift/cms-site/trunk/lib/view.pm

Author: joes
Date: Wed Mar 19 19:32:45 2014
New Revision: 1579365

URL: http://svn.apache.org/r1579365
Log:
clearer

Modified:
    thrift/cms-site/trunk/lib/view.pm

Modified: thrift/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/thrift/cms-site/trunk/lib/view.pm?rev=1579365&r1=1579364&r2=1579365&view=diff
==============================================================================
--- thrift/cms-site/trunk/lib/view.pm (original)
+++ thrift/cms-site/trunk/lib/view.pm Wed Mar 19 19:32:45 2014
@@ -18,7 +18,7 @@ sub thrift_preprocessor {
     $args{content} =~ s{\[XXXsnippet:([^\]]+)\]}
                        {
                            my $template = $1;
-                           my %a = map {split /=/} split /:/, $template;
+                           my %a = map {split /=/, $_, 2} split /:/, $template;
                            $args{$key} = ASF::Value::Snippet->new(template => $url_template, %a);
                            "{{ " . $key++ . ".list.$a{index} }}";
                        }ge;