Clean up whitespace.

This commit is contained in:
andrey
2001-10-26 14:15:30 +00:00
parent e5f8cb1e5a
commit 7bb141a0ce
2 changed files with 48 additions and 48 deletions

View File

@@ -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) {

View File

@@ -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) {