Skip to content

Fix for and tablerow slicing and clamp range literals#211

Merged
jg-rp merged 1 commit into
mainfrom
fix-209
Jun 26, 2026
Merged

Fix for and tablerow slicing and clamp range literals#211
jg-rp merged 1 commit into
mainfrom
fix-209

Conversation

@jg-rp

@jg-rp jg-rp commented Jun 25, 2026

Copy link
Copy Markdown
Owner

This PR:

  • Fixes an issue with excessively large integer values given to offset in {% for %} and {% tablerow %} tags. Previously we would get a ValueError in somme cases. Now we clamp offset to the length of the target iterable.

  • Fixes an issue with excessively large range literals ((1..10)). We now limit the values allowed in range literal expressions to between -1024 and 1024.

Closes #209

@jg-rp
jg-rp merged commit 6d2f131 into main Jun 26, 2026
28 checks passed
@jg-rp
jg-rp deleted the fix-209 branch June 26, 2026 06:37
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

Successfully merging this pull request may close these issues.

Bug: Large tablerow offset raises raw ValueError

1 participant