mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
commit
7668426f65
@ -352,7 +352,7 @@ class Template extends Render
|
|||||||
if($this->_options & Fenom::AUTO_STRIP) {
|
if($this->_options & Fenom::AUTO_STRIP) {
|
||||||
|
|
||||||
$text = preg_replace('/\s+/uS', ' ', str_replace(array("\r", "\n"), " ", $text));
|
$text = preg_replace('/\s+/uS', ' ', str_replace(array("\r", "\n"), " ", $text));
|
||||||
// $text = preg_replace('/\s*([\pP\pS]+)\s*/uS', '$1', $text);
|
$text = str_replace("> <", "><", $text);
|
||||||
}
|
}
|
||||||
$this->_body .= $text;
|
$this->_body .= $text;
|
||||||
}
|
}
|
||||||
|
@ -347,7 +347,7 @@ class FenomTest extends \Fenom\TestCase
|
|||||||
<a href="/item/{\$one}">number {\$num.1}</a>
|
<a href="/item/{\$one}">number {\$num.1}</a>
|
||||||
</div>
|
</div>
|
||||||
TPL;
|
TPL;
|
||||||
$this->assertRender($tpl, '<div class="item item-one"> <a href="/item/1">number one</a> </div>');
|
$this->assertRender($tpl, '<div class="item item-one"><a href="/item/1">number one</a></div>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user