From 3240b5a596e347fc6c6d74bf6c5a1ced28d355a1 Mon Sep 17 00:00:00 2001 From: Uwe Tews Date: Wed, 13 May 2015 02:09:00 +0200 Subject: [PATCH] - improvement remove not needed ?> \s*$/', $left) && preg_match('/^\s*<\?php\s+/', $right)) { + $left = preg_replace('/\s*\?>\s*$/', "\n", $left); + $left .= preg_replace('/^\s*<\?php\s+/', '', $right); + } else { + $left .= $right; + } + return $left; + } + /** * Inject inline code for nocache template sections * This method gets the content of each template element from the parser.