From 925e5bed738f3f9ab1321266e2accbc7a14e5dd3 Mon Sep 17 00:00:00 2001 From: Boris Strahija Date: Tue, 18 Sep 2012 17:22:45 +0300 Subject: [PATCH] Trimming whitespace before doctype tag When using layouts and sections --- laravel/blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/blade.php b/laravel/blade.php index f5bed6f4..f0a520ab 100644 --- a/laravel/blade.php +++ b/laravel/blade.php @@ -68,7 +68,7 @@ public static function sharpen() // Once the view has been compiled, we can simply set the path to the // compiled view on the view instance and call the typical "get" // method on the view to evaluate the compiled PHP view. - return $view->get(); + return ltrim($view->get()); }); }