mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
Disable buggy trim
This commit is contained in:
parent
418fbed537
commit
270f90792a
@ -224,9 +224,9 @@ class Template extends Render
|
|||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// var_dump($this->_src[$pos]);
|
// var_dump($this->_src[$pos]);
|
||||||
if($this->_src[$pos] === "\n") {
|
// if($this->_src[$pos] === "\n") {
|
||||||
$pos++;
|
// $pos++;
|
||||||
}
|
// }
|
||||||
$this->_appendText(substr($this->_src, $pos, $start - $pos));
|
$this->_appendText(substr($this->_src, $pos, $start - $pos));
|
||||||
$end = $start + 1;
|
$end = $start + 1;
|
||||||
do {
|
do {
|
||||||
@ -264,9 +264,9 @@ class Template extends Render
|
|||||||
}
|
}
|
||||||
|
|
||||||
gc_collect_cycles();
|
gc_collect_cycles();
|
||||||
if($end < strlen($this->_src) && $this->_src[$end + 1] === "\n") {
|
// if($end < strlen($this->_src) && $this->_src[$end + 1] === "\n") {
|
||||||
$end++;
|
// $end++;
|
||||||
}
|
// }
|
||||||
$this->_appendText(substr($this->_src, $end ? $end + 1 : 0)); // append tail of the template
|
$this->_appendText(substr($this->_src, $end ? $end + 1 : 0)); // append tail of the template
|
||||||
if ($this->_stack) {
|
if ($this->_stack) {
|
||||||
$_names = array();
|
$_names = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user