blade-formatter
blade-formatter copied to clipboard
Option for removing single or multiple empty lines
Add an option for removing the unnecessary lines.
Example input:
<div>
<div>
Hello World!
</div>
</div>
Example output:
<div>
<div>
Hello World!
</div>
</div>
@BMasquio Thanks for the feature suggestion!
This could be done with other tools like sed. e.g.
find resources/**/*.blade.php | xargs sed -i '/^$/d'
I'd think it's not bad to implement this behaivour but blade-formatter's purpose is to format blade syntax and other tool's task is not in the scope. sed is more better to do this task than blade-formatter so please consider to use sed to remove blank line.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days