-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
@@ -777,7 +777,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
public function processText($text)
{
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 {
return new Smarty_Internal_ParseTree_Text($text);
}