Closed UnknownPlatypus closed 3 months ago
Hello !
I'm experiencing an unstable formatting with this snippet. It is making cargo insta fail when added to fmt/jinja/interpolation/fixture.jinja:
fmt/jinja/interpolation/fixture.jinja
<div>{{ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx }}</div>
Running markup fmt on it first does this:
-<div>{{ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx }}</div> +<div> +{{ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx }} +</div>
Running it a second time does this:
<div> -{{ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx }} + {{ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx }} </div>
Note that adding a space between the div tag and the jinja interpolation make the formatting stable:
-<div> {{ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx }}</div> +<div> + {{ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx }} +</div>
Would it be possible to format this snippet in one pass ? Thanks again for this tool, i'm really enjoying playing around with it
Awesome thanks!
Hello !
I'm experiencing an unstable formatting with this snippet. It is making cargo insta fail when added to
fmt/jinja/interpolation/fixture.jinja
:Running markup fmt on it first does this:
Running it a second time does this:
Note that adding a space between the div tag and the jinja interpolation make the formatting stable:
Would it be possible to format this snippet in one pass ? Thanks again for this tool, i'm really enjoying playing around with it