The code in the input template has been formatted w/ @prettier/plugin-php and copied into the blade template, but blade-formatter then crams nearly every statement onto a single line. I would expect it to format the code more or less unchanged to match how the PHP plugin formats things.
Note that part of this template is copied from https://github.com/shufo/prettier-plugin-blade/issues/266. If I format this template w/ blade-formatter 1.38.6, most of the template after formatting is the same, but the chained method call (3rd statement) is formatted correctly.
Version
1.40.1
Template before formatting
Template after formatting
Expected Behaviour
The code in the input template has been formatted w/
@prettier/plugin-php
and copied into the blade template, but blade-formatter then crams nearly every statement onto a single line. I would expect it to format the code more or less unchanged to match how the PHP plugin formats things.Note that part of this template is copied from https://github.com/shufo/prettier-plugin-blade/issues/266. If I format this template w/ blade-formatter 1.38.6, most of the template after formatting is the same, but the chained method call (3rd statement) is formatted correctly.
Relevant log output
No response