Opened 13 years ago

Closed 13 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: no UI/UX: no

Description

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 by postal2600, 13 years ago

Cc: postal2600 added

comment:2 by Russell Keith-Magee, 13 years ago

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