blade-formatter
blade-formatter copied to clipboard
[Formatting Bug]: @unless directives having too much indentation
Version
1.32.13
Template before formatting
@unless ($suppressMarkup)
<style>
.demoClass {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
}
</style>
<p class="demoClass">
@endunless
{{ $content }}
@unless ($suppressMarkup)
</p>
@endunless
Template after formatting
@unless ($suppressMarkup)
<style>
.demoClass {
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
}
</style>
<p class="demoClass">
@endunless
{{ $content }}
@unless ($suppressMarkup)
</p>
@endunless
Expected Behaviour
In my opinion, the first "@endunless" in line 10 and the second "@unless" in line 14 should not have any indentation as their corresponding start / end directive is not indented. I assume this is a bug and not the expected result.
Relevant log output
No response
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
Related issue: https://github.com/shufo/blade-formatter/issues/646
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
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
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
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