mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 18:34:27 +02:00
Clean up whitespace.
This commit is contained in:
@@ -163,10 +163,10 @@ class Smarty_Compiler extends Smarty {
|
||||
$template_header .= " compiled from ".$tpl_file." */ ?>\n";
|
||||
$template_compiled = $template_header.$template_compiled;
|
||||
|
||||
// remove \n from the end of the file, if any
|
||||
if ( $template_compiled{strlen($template_compiled)-1} == "\n" ) {
|
||||
$template_compiled = substr($template_compiled,0,-1);
|
||||
}
|
||||
// remove \n from the end of the file, if any
|
||||
if ($template_compiled{strlen($template_compiled) - 1} == "\n" ) {
|
||||
$template_compiled = substr($template_compiled, 0, -1);
|
||||
}
|
||||
|
||||
// run compiled template through postfilter functions
|
||||
if (is_array($this->postfilter_funcs) && count($this->postfilter_funcs) > 0) {
|
||||
|
@@ -163,10 +163,10 @@ class Smarty_Compiler extends Smarty {
|
||||
$template_header .= " compiled from ".$tpl_file." */ ?>\n";
|
||||
$template_compiled = $template_header.$template_compiled;
|
||||
|
||||
// remove \n from the end of the file, if any
|
||||
if ( $template_compiled{strlen($template_compiled)-1} == "\n" ) {
|
||||
$template_compiled = substr($template_compiled,0,-1);
|
||||
}
|
||||
// remove \n from the end of the file, if any
|
||||
if ($template_compiled{strlen($template_compiled) - 1} == "\n" ) {
|
||||
$template_compiled = substr($template_compiled, 0, -1);
|
||||
}
|
||||
|
||||
// run compiled template through postfilter functions
|
||||
if (is_array($this->postfilter_funcs) && count($this->postfilter_funcs) > 0) {
|
||||
|
Reference in New Issue
Block a user