Opened 10 years ago
Last modified 15 months ago
#23424 assigned Bug
Verbatim tag fails to render curly braces — at Version 1
Reported by: | stephband | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Normal | Keywords: | verbatim template tag |
Cc: | Chris Jerdonek, Sarah Boyce | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | yes |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The {% verbatim %} tag fails to render curly braces under certain conditions - notably when there are two verbatim tags on the same line.
This works:
{% verbatim %}{{{% endverbatim %} – correctly renders as – {{
{% verbatim %}}}{% endverbatim %} – correctly renders as – }}
{% verbatim %}{ {% endverbatim %}text{% verbatim %} }{% endverbatim %} – correctly renders as – { text }
However, this fails:
{% verbatim %}{{% endverbatim %}text{% verbatim %}}{% endverbatim %} – incorrectly renders as – {{% endverbatim %}text{% verbatim %}}
{% verbatim %}% endverbatim %}text{% verbatim %
{% endverbatim %} – incorrectly renders as – % endverbatim %}text{% verbatim %
{% verbatim %}{{ {% endverbatim %}text{% verbatim %} }}{% endverbatim %} – incorrectly renders as – {{ {% endverbatim %}text{% verbatim %} }}