Skip to content

Commit

Permalink
laravel#27996 @include adding extra space/line break to content
Browse files Browse the repository at this point in the history
replace exact "\n"
  • Loading branch information
bzixilu committed Apr 2, 2019
1 parent f279bf9 commit 032709c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/View/Engines/PhpEngine.php
Expand Up @@ -53,7 +53,7 @@ protected function evaluatePath($__path, $__data)
$ob_get_clean = ob_get_clean();

if (Str::startsWith($last_line, "<?php /*") && Str::endsWith($last_line, "*/ ?>")) {
$ob_get_clean = substr_replace($ob_get_clean ,"", -1);
$ob_get_clean = Str::replaceLast("\n", "", $ob_get_clean);
}
return ltrim($ob_get_clean);
}
Expand Down

0 comments on commit 032709c

Please sign in to comment.