- Smarty did eat the linebreak after the <?xml...?> closing tag (Issue 93)

This commit is contained in:
uwe.tews@googlemail.com
2012-04-12 15:43:06 +00:00
parent 409e39c4ec
commit 4c86e72faa
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,9 @@
===== trunk =====
12.04.2012
- Smarty did eat the linebreak after the <?xml...?> 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)

View File

@@ -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("<?php echo '?>';?>", $this->compiler, true));
$this->_retvalue = new _smarty_text($this, $this->compiler->processNocacheCode("<?php echo '?>';?>\n", $this->compiler, true));
$this->template->has_nocache_code = $save;
} elseif ($this->php_handling == Smarty::PHP_PASSTHRU) {
$this->_retvalue = new _smarty_text($this, '?<?php ?>>');