Opened 10 years ago

Last modified 15 months ago

#23424 assigned Bug

Verbatim tag fails to render curly braces — at Initial Version

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

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 – }}

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 %

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top