Closed zepfietje closed 1 year ago
Corrected in 1.3.0
🙂
Thanks, John. I found the issue still occurs when the code is already indented/wrapped though:
<div>
<style>
:root {
--foo: red;
@if (true)
--bar: blue;
@endif
}
</style>
</div>
<div>
<style>
:root {
--foo: red;
@if (true)
--bar: blue;
@endif
}
</style>
</div>
Oh that was a tough one; but got it in 1.3.1
while preserving the existing test cases👍
Glad you got it working!
This is an issue that occurs when running the formatter on the Filament codebase. I've simplified it to the minimal amount of code that reproduces the issue:
Every time the formatter is run, the styles get indented:
Running it again:
The original code really doesn't need any formatting at all.