Browse Source

Trimming whitespace before doctype tag

When using layouts and sections
Boris Strahija 12 years ago
parent
commit
925e5bed73
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/blade.php

+ 1 - 1
laravel/blade.php

@@ -68,7 +68,7 @@ class Blade {
 			// Once the view has been compiled, we can simply set the path to the
 			// 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"
 			// compiled view on the view instance and call the typical "get"
 			// method on the view to evaluate the compiled PHP view.
 			// method on the view to evaluate the compiled PHP view.
-			return $view->get();
+			return ltrim($view->get());
 		});
 		});
 	}
 	}