HamlPy
HamlPy copied to clipboard
HamlPy comment before else produces incorrect output
This haml
- if True
- else
Produces the following correct output:
{% if True %}
{% else %}
{% endif %}
However, adding a HamlPy comment before the else produces a different output.
- if True
-#
- else
Renders to:
{% if True %}
{% endif %}
{% else %}
Which has the else placed after the endif.