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

[Formatting Bug]: spaces contained in string are broken up when wrapping text.

Open rikvdh opened this issue 1 year ago • 1 comments

Platform

Windows

Template before formatting

@canany([
    'Lorem ipsum dolor sit amet',
    'consectetur adipiscing elit',
    'Phasellus magna urna',
    'fermentum sit amet lectus nec',
    'aliquet finibus velit',
    ])
@endcan

Template after formatting

@canany(['Lorem ipsum dolor sit amet', 'consectetur adipiscing elit', 'Phasellus magna urna', 'fermentum sit amet lectus
    nec', 'aliquet finibus velit'])
@endcan

Expected Behaviour

The spaces contained inside strings should not be broken up. There are multiple ways of formatting this, but the whitespace in strings should be retained as it.

Relevant log output

No response

rikvdh avatar Mar 20 '24 06:03 rikvdh

Thanks for the report! It should be fixed. I'll look into it.

shufo avatar Mar 20 '24 21:03 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 May 20 '24 01:05 github-actions[bot]