From c859f6a9aeb6b0afc6d88b8aa61cafc6ce9b9d07 Mon Sep 17 00:00:00 2001 From: "uwe.tews@googlemail.com" Date: Tue, 12 Jul 2011 17:20:45 +0000 Subject: [PATCH] - bugfix PHP did eat line break on nocache sections --- change_log.txt | 3 +++ libs/sysplugins/smarty_internal_templatecompilerbase.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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) {