Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inserting a dash to the tag #199

Open
mtran21 opened this issue Jan 29, 2025 · 1 comment
Open

Inserting a dash to the tag #199

mtran21 opened this issue Jan 29, 2025 · 1 comment

Comments

@mtran21
Copy link

mtran21 commented Jan 29, 2025

Why is it when I save a liquid file in VS, it automatically inserting a dash to the liquid tag like this?

{%- unless event_item.status == 'live' %}{{ site.snippets.event_status[event_item.status] }}: {% endunless -%} {{- event_item.name -}}

Thanks

@panoply
Copy link
Owner

panoply commented Jan 29, 2025

Hey @mtran21, this will be due to the formatting rule known delimiterTrims which you can disable by setting it preserve to prevent that behaviour from applying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants