From ab1272a2e43fc658c0b4785963cbf9c267f8e52a Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Tue, 17 Mar 2015 04:31:51 +0100 Subject: [PATCH] fix whitespaces on tags included in double quoted strings --- libs/Smarty.class.php | 2 +- libs/sysplugins/smarty_internal_parsetree_tag.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 2ab41c82..6a4580b9 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -111,7 +111,7 @@ class Smarty extends Smarty_Internal_TemplateBase /** * smarty version */ - const SMARTY_VERSION = '3.1.22-dev/12'; + const SMARTY_VERSION = '3.1.22-dev/13'; /** * define variable scopes diff --git a/libs/sysplugins/smarty_internal_parsetree_tag.php b/libs/sysplugins/smarty_internal_parsetree_tag.php index 878c7668..28bbb938 100644 --- a/libs/sysplugins/smarty_internal_parsetree_tag.php +++ b/libs/sysplugins/smarty_internal_parsetree_tag.php @@ -56,7 +56,7 @@ class Smarty_Internal_ParseTree_Tag extends Smarty_Internal_ParseTree public function assign_to_var() { $var = sprintf('$_tmp%d', ++ Smarty_Internal_Templateparser::$prefix_number); - $this->parser->compiler->prefix_code[] = sprintf("\n%s\n", $this->data, $var); + $this->parser->compiler->prefix_code[] = sprintf("%s", $this->data, $var); return $var; }