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

don't reset Liquid tag's whitespace control from comment tag #1773

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

ggmichaelgo
Copy link
Contributor

#1764 introduced a bug that a comment tag inside a liquid tag overrides the liquid tag's whitespace control.

A Liquid template like this would expected to output Hello!World! but since the endcomment tag delimiter disables the whitespace control, it outputs Hello!\nWorld!

Hello!
{%- liquid
  comment
    this is inside a liquid tag
  endcomment
-%}
World!

@ggmichaelgo ggmichaelgo requested a review from a team January 5, 2024 14:24
@ggmichaelgo ggmichaelgo merged commit f5ed540 into main Jan 5, 2024
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants