Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inverted sections rendered incorrectly for existing values #2

Closed
kyrel opened this issue Apr 7, 2011 · 1 comment
Closed

Inverted sections rendered incorrectly for existing values #2

kyrel opened this issue Apr 7, 2011 · 1 comment

Comments

@kyrel
Copy link

kyrel commented Apr 7, 2011

This block of code in SectionToken.render:

    case str:String => StringProduct(str)

    case other =>
      composite(children, other, partials, callstack)

does not check if the section is inverted or not so it should better be

case str:String => if (!inverted) StringProduct(str) else EmptyProduct
case other => if(!inverted) composite(children, other, partials, callstack) else EmptyProduct

@vspy vspy closed this as completed in 8b3e3ca Apr 9, 2011
@vspy
Copy link
Owner

vspy commented Apr 9, 2011

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants