Issue 2157 remove 'space removing' syntax.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3@10917 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
misol 2012-07-19 11:29:15 +00:00
parent e6302c8c9e
commit 9892444c15

View file

@ -205,7 +205,7 @@ class TemplateHandler {
$buff = '<?php if(!defined("__XE__"))exit;?>'.$buff;
// remove php script reopening
$buff = preg_replace(array('/(\n|\r\n)+/','/(;)?( )*\?\>([\n\t]+)?\<\?php([\n\t ]+)?/'),array("\n",";\n"),$buff);
$buff = preg_replace(array('/(\n|\r\n)+/','/(;)?( )*\?\>\<\?php([\n\t ]+)?/'),array("\n",";\n"),$buff);
return $buff;
}