blade-formatter icon indicating copy to clipboard operation
blade-formatter copied to clipboard

Option for removing single or multiple empty lines

Open BMasquio opened this issue 5 years ago • 1 comments

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 avatar Jan 10 '20 16:01 BMasquio

@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.

shufo avatar Jan 12 '20 20:01 shufo

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

github-actions[bot] avatar Dec 07 '22 02:12 github-actions[bot]