incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1226666 - /incubator/ooo/ooo-site/trunk/lib/view.pm
Date Tue, 03 Jan 2012 06:09:53 GMT
Author: joes
Date: Tue Jan  3 06:09:53 2012
New Revision: 1226666

URL: http://svn.apache.org/viewvc?rev=1226666&view=rev
Log:
whitespace to trigger site build

Modified:
    incubator/ooo/ooo-site/trunk/lib/view.pm

Modified: incubator/ooo/ooo-site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/lib/view.pm?rev=1226666&r1=1226665&r2=1226666&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/lib/view.pm (original)
+++ incubator/ooo/ooo-site/trunk/lib/view.pm Tue Jan  3 06:09:53 2012
@@ -117,8 +117,9 @@ sub html_page {
 	}
     }
 
-    $args{header} = `sed -n '/<head>/,/<\\/head>/p' ${file} | sed -e '1s/.*<head>//'
-e 's/<\\/head>.*//'`;
-    $args{content} = `sed -n '/<body.*>/,/<\\/body>/p' ${file} | sed -e '1s/.*<body.*>//'
-e "s/<\\/body>.*//"`;
+    if ($args{content} =~ m!<head>([.\n]*)</head>[.\n]*<body.*>([.\n]*)</body>!)
+        @args{qw/header content/} = ($1, $2);
+    }
 
     return Template($template)->render(\%args), html => \%args;
 }



Mime
View raw message