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

This commit is contained in:
Michael Go
2024-01-05 10:21:33 -04:00
parent 96a036372d
commit a3c837687e
2 changed files with 16 additions and 4 deletions
+12
View File
@@ -187,4 +187,16 @@ class CommentTagUnitTest < Minitest::Test
Hello!
LIQUID
end
def test_dont_override_liquid_tag_whitespace_control
assert_template_result("Hello!World!", <<~LIQUID.chomp)
Hello!
{%- liquid
comment
this is inside a liquid tag
endcomment
-%}
World!
LIQUID
end
end