mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 10:20:43 -07:00
don't reset Liquid tag's whitespace control from comment tag
This commit is contained in:
@@ -61,11 +61,11 @@ module Liquid
|
||||
comment_tag_depth += 1
|
||||
when "endcomment"
|
||||
comment_tag_depth -= 1
|
||||
end
|
||||
|
||||
if comment_tag_depth.zero?
|
||||
parse_context.trim_whitespace = (token[-3] == WhitespaceControl)
|
||||
return false
|
||||
end
|
||||
if comment_tag_depth.zero?
|
||||
parse_context.trim_whitespace = (token[-3] == WhitespaceControl) unless tokenizer.for_liquid_tag
|
||||
return false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user