Closed ggmichaelgo closed 9 months ago
https://github.com/Shopify/liquid/pull/1764 introduced a bug that a comment tag inside a liquid tag overrides the liquid tag's whitespace control.
comment
liquid
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!World!
endcomment
Hello!\nWorld!
Hello! {%- liquid comment this is inside a liquid tag endcomment -%} World!
https://github.com/Shopify/liquid/pull/1764 introduced a bug that a
comment
tag inside aliquid
tag overrides theliquid
tag's whitespace control.A Liquid template like this would expected to output
Hello!World!
but since theendcomment
tag delimiter disables the whitespace control, it outputsHello!\nWorld!