You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2014/02/11 00:14:35 UTC
svn commit: r1566825 - /myfaces/site/cms-site/trunk/lib/view.pm
Author: lu4242
Date: Mon Feb 10 23:14:34 2014
New Revision: 1566825
URL: http://svn.apache.org/r1566825
Log:
test how to fix documentation
Modified:
myfaces/site/cms-site/trunk/lib/view.pm
Modified: myfaces/site/cms-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/myfaces/site/cms-site/trunk/lib/view.pm?rev=1566825&r1=1566824&r2=1566825&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Mon Feb 10 23:14:34 2014
@@ -21,6 +21,7 @@ use LWP::Simple;
use SVN::Client;
use File::Find;
use File::Basename;
+use Text::Trim;
push @Dotiac::DTL::TEMPLATE_DIRS, "templates";
@@ -51,7 +52,7 @@ sub single_narrative {
my $hindex = index($key, "set_" );
if ($hindex == 0) {
my $headerKey = substr($key, 4);
- my $command = ${args{headers}}{$headerKey};
+ my $command = trim(${args{headers}}{$headerKey});
# TODO: parse parameter here
if ($command eq "pagetree") {
my($ptfile, $ptdir, $ptext) = fileparse($args{path}, qr/\.[^.]*/);