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, '?>');