mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
[trim] Fix trimming at end of raw block when specified in the opening tag
This commit is contained in:
@@ -26,6 +26,7 @@ module Liquid
|
||||
@body = +''
|
||||
while (token = tokens.shift)
|
||||
if token =~ FullTokenPossiblyInvalid && block_delimiter == Regexp.last_match(2)
|
||||
parse_context.trim_whitespace = (token[-3] == WhitespaceControl)
|
||||
@body << Regexp.last_match(1) if Regexp.last_match(1) != ""
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user