mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-06 08:26:19 +02:00
- revert handling of newline on no output tags like {if...}
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user