implement whitespace control to comment tag

This commit is contained in:
Michael Go
2023-12-01 16:04:03 -04:00
parent bf0f79f36c
commit 24d461a9e3
2 changed files with 15 additions and 1 deletions
+4 -1
View File
@@ -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