From 4c86e72faac3a24b0be8b2e06cf9d2b4f0d00312 Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Thu, 12 Apr 2012 15:43:06 +0000 Subject: [PATCH] - Smarty did eat the linebreak after the closing tag (Issue 93) --- change_log.txt | 5 ++++- libs/sysplugins/smarty_internal_templateparser.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/change_log.txt b/change_log.txt index 15e81976..4964fd2f 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,6 +1,9 @@ ===== trunk ===== +12.04.2012 +- Smarty did eat the linebreak after the closing tag (Issue 93) + 08.04.2012 -- bugfix "\\" was not escaped correctly when generation nocache code (Forum Topic 21364) +- bugfix "\\" was not escaped correctly when generating nocache code (Forum Topic 21364) 30.03.2012 - bugfix template inheritance did not throw exception when a parent template was deleted (issue 90) diff --git a/libs/sysplugins/smarty_internal_templateparser.php b/libs/sysplugins/smarty_internal_templateparser.php index d6b7bbbf..ad2fcd62 100644 --- a/libs/sysplugins/smarty_internal_templateparser.php +++ b/libs/sysplugins/smarty_internal_templateparser.php @@ -2236,7 +2236,7 @@ static public $yy_action = array( $this->compiler->tag_nocache = true; $this->is_xml = false; $save = $this->template->has_nocache_code; - $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("';?>", $this->compiler, true)); + $this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("';?>\n", $this->compiler, true)); $this->template->has_nocache_code = $save; } elseif ($this->php_handling == Smarty::PHP_PASSTHRU) { $this->_retvalue = new _smarty_text($this, '?>');