I'm developing views in Laravel Blade and I always get unwanted spaces in the final HTML (checking with Dev tool) like this (ugly case):
You'll see a lot of unwanted spaces, where the code is simply:
<!-- Ugly -->
<div>
Lorem ipsum
<div>
Lorem ipsum
</div>
</div>
Obviously I've tabulation set as spaces in my IDE.
I tried to remove them in many ways where the only one that works is to put all inline:
<!-- Beautiful (but I can't do this for all!) -->
<div>Lorem ipsum<div>Lorem ipsum</div></div>
but very often I can't do that.
How can avoid all these spaces?
EDIT: this seems to happens in Chrome, not in Firefox
