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