Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fixing Blade not trimming the result #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2013
Merged

Conversation

DPr00f
Copy link
Contributor

@DPr00f DPr00f commented Jan 14, 2013

When a view extends a layout that yields a content, normaly you give some spaces between the @extends('masterview') and the @section('example'), those spaces are being printed in the source code of the html.
The solution was trimming the content received from the compileString method.

Hope it helps.

Best wishes,
João Lopes

@bencorlett
Copy link
Contributor

Yes I have noticed this too. It's not ideal as you should specify the doctype on the first character and the charset should be specified first thing inside head, especially for bloody IE.

tl;dr

+1

@daylerees
Copy link
Contributor

This one gets to me too, thanks for the pull! :)

daylerees added a commit that referenced this pull request Jan 14, 2013
Fixing Blade not trimming the result
@daylerees daylerees merged commit 7e413a7 into laravel:master Jan 14, 2013
joelharkes pushed a commit to joelharkes/framework_old that referenced this pull request Mar 7, 2019
…ion-docs

Feature/add authentication docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.