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

Identify multiple jinja tags in a single line #198

Merged
merged 2 commits into from
Nov 5, 2023

Conversation

AsherGlick
Copy link
Owner

The current system breaks if you do a {% for ... %}something inline{% endfor %} because the current regex only captures the `{% endfor %} breaking the indentation stack. This marginally corrects this while not fully solving the problem. Instead it just checks to see if there are multiple tags on a single line, and if there are it assumes that all the open block tags are paired with close block tags. This can be expanded upon further down the line as it is needed.

@AsherGlick AsherGlick merged commit f15c462 into xml_converter Nov 5, 2023
12 checks passed
@AsherGlick AsherGlick deleted the jinja_multitag branch November 5, 2023 23:40
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.

2 participants