First: thanks for the prompt fixes on the previous auto-format errors I reported. Format is working much more reliably in the codebases I'm working from, now!
I've got a new one for you, and this one's quite weird:
<div>
<div
class="zzzzz zzzzz zzzzzz zzzzzzz zzzzzz zzzzzzzz zzzzzzz zzzzzzzzz zzzzzzz zzzzzzzzz zzzzzzz zzzzz zzzzzz zzzzz">
<div>
<div>
<span><?= 1 ?></span>
text
</div>
</div>
</div>
</div>
This fails with "Format stopped. Change is not allowed. [Line 7]"
Things that affect it:
- Length of the class on line 3. One character shorter, and it formats. One character longer, and it doesn't. It doesn't matter if there are spaces or not, that just happens to be the version I'm sharing (replacing spaces with zs exhibits the same behavior, though the length might vary by a character or two)
- Indentation: if you indent or de-indent the </div> on line 8 by one space, it formats
- Wrapping / parent child classes: I tried to get the minimal reproduction, but due to the above items I couldn't simplify it more easily. Removing wrapping classes might succeed only because of whatever is causing it to fail based on the whitespace.
- PHP tag: this can be either
<?php ?>
or<?= ?>
, but if you remove it, formatting works - Text node: delete this, and formatting works (with or without the preceding space)
Hopefully this is enough info to run it down, and maybe it will lead to a broader fix :) While I was attempting to get the last 3-ish files in shape (trying to see if there was an easy workaround, which I initially thought might be converting <?php ?> to <?= ?>), one of them "magically" started formatting correctly, and I think it's a similar situation with the indentation.