From 5a6c3e69286cc5395dd0391f0f778a274202060e Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Wed, 16 Feb 2011 16:45:27 +0000 Subject: [PATCH] -improvement allow leading spaces on } tag closing if auto_literal is enabled --- change_log.txt | 1 + libs/sysplugins/smarty_internal_templatelexer.php | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/change_log.txt b/change_log.txt index 11806b94..e67d5805 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,7 @@ ===== SVN trunk ===== 16/02/2011 -fixed typo in exception message of Smarty_Internal_Template +-improvement allow leading spaces on } tag closing if auto_literal is enabled 13/02/2011 - bugfix replace $smarty->triggerError() by exception in smarty_internal_resource_extends.php diff --git a/libs/sysplugins/smarty_internal_templatelexer.php b/libs/sysplugins/smarty_internal_templatelexer.php index 5e0e496a..bd71f26e 100644 --- a/libs/sysplugins/smarty_internal_templatelexer.php +++ b/libs/sysplugins/smarty_internal_templatelexer.php @@ -561,12 +561,8 @@ class Smarty_Internal_Templatelexer function yy_r2_8($yy_subpatterns) { - if ($this->smarty->auto_literal) { - $this->token = Smarty_Internal_Templateparser::TP_OTHER; - } else { $this->token = Smarty_Internal_Templateparser::TP_RDEL; $this->yypopstate(); - } } function yy_r2_9($yy_subpatterns) {