Inspectopedia Help

Mismatched opening and closing tags

Reports cases when opening tags in Django templates are not correctly matched by closing tags.


{% if error_message %}<p><strong>{{ error_message }}</p>{% endif %}

The IDE reports an error on the strong tag not being closed.

Inspection Details

Available in:

PyCharm 2023.3


Python, 233.SNAPSHOT

Last modified: 13 July 2023