You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by jo...@apache.org on 2012/01/03 07:09:53 UTC

svn commit: r1226666 - /incubator/ooo/ooo-site/trunk/lib/view.pm

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;
 }