Closed noelforte closed 3 months ago
When there are directives in the tag of the markup, dprint fails to format.
{{ set test = true }} <p{{ if test }} class="my-class"{{ /if }}></p>
This works, but leaves behind an empty attribute.
{{ set test = true }} <p class="{{ if test }}my-class{{ /if }}"></p>
Error formatting /***/test.vto. Message: syntax error 'expect self close tag' at line 3, column 38
https://github.com/noelforte/dprint-vento-format-rtc
That's one of known limitations when formatting Vento templates.
Description
When there are directives in the tag of the markup, dprint fails to format.
This works, but leaves behind an empty attribute.
Output of error
Reduced test case
https://github.com/noelforte/dprint-vento-format-rtc