rtts / djhtml

Django/Jinja template indenter
GNU General Public License v3.0
572 stars 32 forks source link

Off-by-one error in error reporting after comment #18

Closed sjoerdjob closed 3 years ago

sjoerdjob commented 3 years ago

Using the 4-line excerpt

{% comment %}
This is some text
{% endcomment %}
</li>

the output is

found closing “</li>” on line 5 that was never opened.

but should have been

found closing “</li>” on line 4 that was never opened.