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:15:39 UTC

svn commit: r1566828 - /myfaces/site/cms-site/trunk/lib/view.pm

Author: lu4242
Date: Mon Feb 10 23:15:39 2014
New Revision: 1566828

URL: http://svn.apache.org/r1566828
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=1566828&r1=1566827&r2=1566828&view=diff
==============================================================================
--- myfaces/site/cms-site/trunk/lib/view.pm (original)
+++ myfaces/site/cms-site/trunk/lib/view.pm Mon Feb 10 23:15:39 2014
@@ -21,10 +21,14 @@ use LWP::Simple;
 use SVN::Client;
 use File::Find;
 use File::Basename;
-use Text::Trim;
 
 push @Dotiac::DTL::TEMPLATE_DIRS, "templates";
 
+sub trim {
+    (my $s = $_[0]) =~ s/^\s+|\s+$//g;
+    return $s;        
+}
+
 # This is most widely used view.  It takes a
 # 'template' argument and a 'path' argument.
 # Assuming the path ends in foo.mdtext, any files