mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
-bugfix {strip} should insert a single space https://github.com/smarty-php/smarty/issues/111
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user