You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Where a {{#ulist}} is embedded inside a parent {{#ulist}} the first {{/ulist}} end tag terminates both {{#ulist}} items.
To Reproduce
Consider the following grammar.
{{#ulist commissions}}
Based on a sale price of $ {{salePrice as "0,0"}} the Commission Amount will be $ {{commissionAmount as "0,0"}}
Calculated as follows:
{{#ulist lineItems}}
{{description}} being $ {{value as "0,0"}}
{{/ulist}}
{{/ulist}}
This renders as follows:
- Based on a sale price of $ 1,650,000 the Commission Amount will be $ 130,000 (including $ 13,000 GST.)
Calculated as follows:
- 7% of the property sale between $0 and $500,000 being $ 35,000
- 8% of the property sale between $500,000 and $1,000,000 being $ 40,000
- 9% of the property sale between $1,000,000 and $1,500,000 being $ 45,000
- A fixed fee of $10,000 for the property sale price over $1,500,000 being $ 10,000
{{/ulist}}
Notice the extraneous {{/ulist}} at the end?
Removing the second {{ulist}} has no effect on the grammar execution when it should.
Expected behaviour
Expect that all {{#ulist}} tags should have a matching {{/ulist}} tag and, therefore, be able have multiple {{#ulist}} elements embedded in parent {{#ulist}} elements.
Additional context
Cicero v0.21.3
The text was updated successfully, but these errors were encountered:
That's a serious bug in the new parser (most likely originating from the templatemark plugin). I'm labelling this as a critical bug. I'll look at it ASAP.
Describe the bug
Where a {{#ulist}} is embedded inside a parent {{#ulist}} the first {{/ulist}} end tag terminates both {{#ulist}} items.
To Reproduce
Consider the following grammar.
This renders as follows:
Notice the extraneous
{{/ulist}}
at the end?Removing the second
{{ulist}}
has no effect on the grammar execution when it should.Expected behaviour
Expect that all
{{#ulist}}
tags should have a matching{{/ulist}}
tag and, therefore, be able have multiple {{#ulist}} elements embedded in parent {{#ulist}} elements.Additional context
Cicero v0.21.3
The text was updated successfully, but these errors were encountered: