diff --git a/change_log.txt b/change_log.txt index 368d8e12..79fa39b6 100644 --- a/change_log.txt +++ b/change_log.txt @@ -1,4 +1,7 @@ ===== SVN trunk ===== +12/07/2011 +- bugfix PHP did eat line break on nocache sections + 19/06/2011 - bugfix clear_config Smarty2 BC wrapper function was missing diff --git a/libs/sysplugins/smarty_internal_templatecompilerbase.php b/libs/sysplugins/smarty_internal_templatecompilerbase.php index b8b341e7..cc5c6924 100644 --- a/libs/sysplugins/smarty_internal_templatecompilerbase.php +++ b/libs/sysplugins/smarty_internal_templatecompilerbase.php @@ -380,7 +380,7 @@ class Smarty_Internal_TemplateCompilerBase { $this->template->has_nocache_code = true; $_output = str_replace("'", "\'", $content); $_output = str_replace("^#^", "'", $_output); - $_output = "nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>"; + $_output = "nocache_hash}%%*/" . $_output . "/*/%%SmartyNocache:{$this->nocache_hash}%%*/';?>\n"; // make sure we include modifer plugins for nocache code if (isset($this->template->saved_modifier)) { foreach ($this->template->saved_modifier as $plugin_name => $dummy) {