Skip to content

ERB like trim mode, another approach#49

Closed
sos4nt wants to merge 1 commit intoShopify:masterfrom
sos4nt:trimmode
Closed

ERB like trim mode, another approach#49
sos4nt wants to merge 1 commit intoShopify:masterfrom
sos4nt:trimmode

Conversation

@sos4nt
Copy link
Copy Markdown

@sos4nt sos4nt commented Apr 4, 2011

I've added separate regular expressions for capturing -%} and -}} followed by an optional newline character.
The markup capture in block.rb needed to be changed from greedy (.*)? to lazy (.*?)?.

Furthermore I've changed the push method to push the context before raising StackLevelError so it can be popped later. IncludeTagTest fails otherwise, at least on my system.

@fw42
Copy link
Copy Markdown
Contributor

fw42 commented Jun 16, 2013

Closing this because of #171

@fw42 fw42 closed this Jun 16, 2013
eq19 pushed a commit to VirtualNetworks/liquid that referenced this pull request May 2, 2025
…which are not allowed. This addresses issue Shopify#40 and merges the relevant changes by @mferretti in PR Shopify#49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants