Closed andyxmas closed 1 year ago
This seems related to the two whitespace character after the opening block:
{% comment %}
This is a comment
is actually {% comment %} \nThis is a comment
.
When I don't have them, this doesn't happen. So odd that we never caught that before. Thanks for reporting!
@charlespwd ah, you're right. I've set "editor.renderWhitespace": "all"
in my vscode settings, and I see it now. I shall delete the white space and continue testing!
I mean, that's still definetly an urgent bug that I just fixed :) It's going into v1.0.1 and will be released today.
Shipped in v1.0.1, thanks again for reporting :)
Describe the bug The contents between
{% comment %}
and{% endcomment %}
tags are deleted.Unformatted source
Expected output
Actual output
Debugging information
Additional context I find this issue when running from the command line like
npx prettier sections/test.liquid --write
or from the plugin on vscode. I've deleted my .prettier.congig.jsThanks for you work on this plugin - I'm really keen to adopt it in our workflow, but I've never tested beyond this issue as its a definite blocker.