mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
parent
0091b17c8a
commit
c238053e99
@ -343,8 +343,9 @@ class Template extends Render
|
|||||||
$text = str_replace("<?", '<?php echo "<?"; ?>' . PHP_EOL, $text);
|
$text = str_replace("<?", '<?php echo "<?"; ?>' . PHP_EOL, $text);
|
||||||
}
|
}
|
||||||
if($this->_options & Fenom::AUTO_STRIP) {
|
if($this->_options & Fenom::AUTO_STRIP) {
|
||||||
$text = preg_replace('/\s+/uS', ' ', $text);
|
|
||||||
$text = preg_replace('/\s*([\pP\pS]+)\s*/uS', '$1', $text);
|
$text = preg_replace('/\s+/uS', ' ', str_replace(array("\r", "\n"), " ", $text));
|
||||||
|
// $text = preg_replace('/\s*([\pP\pS]+)\s*/uS', '$1', $text);
|
||||||
}
|
}
|
||||||
$this->_body .= $text;
|
$this->_body .= $text;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user