From 270f90792a4f0397c53ff22d15e182a204515c3f Mon Sep 17 00:00:00 2001 From: bzick Date: Fri, 23 Aug 2013 01:06:47 +0400 Subject: [PATCH] Disable buggy trim --- src/Fenom/Template.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Fenom/Template.php b/src/Fenom/Template.php index 033e32f..8b14288 100644 --- a/src/Fenom/Template.php +++ b/src/Fenom/Template.php @@ -224,9 +224,9 @@ class Template extends Render break; default: // var_dump($this->_src[$pos]); - if($this->_src[$pos] === "\n") { - $pos++; - } +// if($this->_src[$pos] === "\n") { +// $pos++; +// } $this->_appendText(substr($this->_src, $pos, $start - $pos)); $end = $start + 1; do { @@ -264,9 +264,9 @@ class Template extends Render } gc_collect_cycles(); - if($end < strlen($this->_src) && $this->_src[$end + 1] === "\n") { - $end++; - } +// if($end < strlen($this->_src) && $this->_src[$end + 1] === "\n") { +// $end++; +// } $this->_appendText(substr($this->_src, $end ? $end + 1 : 0)); // append tail of the template if ($this->_stack) { $_names = array();