-bugfix {strip} should insert a single space https://github.com/smarty-php/smarty/issues/111

This commit is contained in:
uwetews
2015-12-05 17:28:05 +01:00
parent 54fe432730
commit 4839d0e0cc
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
 ===== 3.1.28-dev===== (xx.xx.2015)  ===== 3.1.28-dev===== (xx.xx.2015)
05.12.2015
-bugfix {strip} should insert a single space https://github.com/smarty-php/smarty/issues/111
25.11.2015 25.11.2015
-bugfix a left delimter like '[%' did fail on [%$var_[%$variable%]%] (forum topic 25798) -bugfix a left delimter like '[%' did fail on [%$var_[%$variable%]%] (forum topic 25798)

View File

@@ -777,7 +777,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
public function processText($text) public function processText($text)
{ {
if ($this->parser->strip) { if ($this->parser->strip) {
return new Smarty_Internal_ParseTree_Text(preg_replace($this->stripRegEx, '', $text)); return new Smarty_Internal_ParseTree_Text(preg_replace($this->stripRegEx, ' ', $text));
} else { } else {
return new Smarty_Internal_ParseTree_Text($text); return new Smarty_Internal_ParseTree_Text($text);
} }