HamlPy icon indicating copy to clipboard operation
HamlPy copied to clipboard

HamlPy comment before else produces incorrect output

Open ajalt opened this issue 12 years ago • 0 comments

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.

ajalt avatar Nov 08 '13 18:11 ajalt