diff --git a/resources/templates/engine/raintpl/rain.tpl.class.php b/resources/templates/engine/raintpl/rain.tpl.class.php index 48dd05f9c0..acb30be358 100644 --- a/resources/templates/engine/raintpl/rain.tpl.class.php +++ b/resources/templates/engine/raintpl/rain.tpl.class.php @@ -312,6 +312,9 @@ class RainTPL{ // fix the php-eating-newline-after-closing-tag-problem $template_compiled = str_replace( "?>\n", "?>\n\n", $template_compiled ); + + // fix the php-eating-carridge-returns-after-closing-tag-problem + $template_compiled = str_replace( "?>\r", "?>\r\r", $template_compiled ); // create directories if( !is_dir( $cache_dir ) )