Open symroe opened 2 years ago
I have same issue here:
{% for s in status_list %}
{% if s.name == "OPEN" %}
<optgroup class="border-bottom border-primary">
{% endif %}
<option {% if status == s.name %} selected {% endif %} >{{ s }}</option>
{% if s.name == "CLOSED" %}
</optgroup>
{% endif %}
{% endfor %}
Describe the bug
parse.py
contains the following on line 565 at time of writing:Some HTML input can cause
content
to be of typeParser
notstr
, causing the error in the title.I suspect there are two bugs here:
content
can change seems to indicate a deeper bug than I'm able to understand at the moment. I think pulling at that thread will help with the "proper" fixWhich terms did you search for in the documentation and issue tracker?
"concatenate"
Environment
Steps to reproduce
I have two samples:
To re-produce the actual bug
Write the below to
example.html
and thencurlylint example.html
with no other configStripped down example that I don't think should be an error
In this example, the
<ul>
is opened but not closed, however I don't think this should be a linting error...as you can see from the above example, it is closed later in the template.(None of this is to say that the template is good, but I don't think it should raise this exception!)
Expected behavior
For sample 1, I think it shouldn't blow up. I fixed this by adding
str()
aroundcontent
, but like I say, I think we should understand whycontent
isn't a string already, like it's clearly expecting.For sample 2: this might be more complex and could be punted to a different issue, but I don't think it should error.
To be clear in example 2, the error is "correct" in that I get