Opened 7 years ago

Closed 7 years ago

#15248 closed (wontfix)

Can not embed a comment bloc in another comment block

Reported by: postal2600 Owned by: nobody
Component: Template system Version: 1.2
Severity: Keywords:
Cc: postal2600 Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


I don't know if this is a bug or it should be like this, but if you have a {% comment %}{% endcomment %} bloc, in another comment block, you'll get an exception

Change History (2)

comment:1 Changed 7 years ago by postal2600

Cc: postal2600 added

comment:2 Changed 7 years ago by Russell Keith-Magee

Resolution: wontfix
Status: newclosed

This isn't an uncommon limitation in many programming languages. because it's syntactically ambiguous. In the following template:

{% comment %}{% comment %}{% endcomment %}{% endcomment %}

Is the second {% comment %} something that is being commented out, or the start of a second comment?

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