Opened 4 years ago

Closed 4 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:

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 Changed 4 years ago by postal2600

  • Cc postal2600 added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 4 years ago by russellm

  • Resolution set to wontfix
  • Status changed from new to closed

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