- revert handling of newline on no output tags like {if...}

This commit is contained in:
Uwe.Tews
2010-01-14 20:57:27 +00:00
parent 13444e9781
commit 383e4bb4ae
6 changed files with 13 additions and 14 deletions
@@ -340,7 +340,7 @@ class Smarty_Internal_TemplateCompilerBase {
$this->tag_nocache = false;
$this->template->has_nocache_code = true;
$_output = str_replace("'", "\'", $content);
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n";
$_output = "<?php echo '/*%%SmartyNocache:{$this->nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>";
// make sure we include modifer plugins for nocache code
if (isset($this->template->saved_modifer)) {
foreach ($this->template->saved_modifer as $plugin_name => $dummy) {