incubator-ooo-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1226918&view=rev
Log:
Incorporate Dave's comments.

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=1226918&r1=1226917&r2=1226918&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/lib/view.pm (original)
+++ incubator/ooo/ooo-site/trunk/lib/view.pm Tue Jan  3 19:00:39 2012
@@ -117,8 +117,8 @@ sub html_page {
 	}
     }
 
-    if ($args{content} =~ m!<head>(.*?)</head>(?:.*?:<body.*?>)?(.*?)(?:</body>|\Z)!si)
{
-        @args{qw/header content/} = ($1, $2);
+    if ($args{content} =~ m!<head>(.*?)</head>(?:.*?:<body(.*?)>)?(.*?)(?:</body>|\Z)!si)
{
+        @args{qw/header bodytag content/} = ($1, $2, $3);
     }
 
     return Template($template)->render(\%args), html => \%args;



Mime
View raw message