incubator-ooo-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1226899&view=rev
Log:
regexp bugs

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=1226899&r1=1226898&r2=1226899&view=diff
==============================================================================
--- incubator/ooo/ooo-site/trunk/lib/view.pm (original)
+++ incubator/ooo/ooo-site/trunk/lib/view.pm Tue Jan  3 18:03:04 2012
@@ -117,7 +117,7 @@ sub html_page {
 	}
     }
 
-    if ($args{content} =~ m!<head>([.\n]*)</head>[.\n]*<body.*>([.\n]*)</body>!i)
{
+    if ($args{content} =~ m!<head>(.*?)</head>.*?<body.*?>(.*?)</body>!si)
{
         @args{qw/header content/} = ($1, $2);
     }
 



Mime
View raw message