Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HamlPy comment before else produces incorrect output #151

Open
ajalt opened this issue Nov 8, 2013 · 0 comments
Open

HamlPy comment before else produces incorrect output #151

ajalt opened this issue Nov 8, 2013 · 0 comments

Comments

@ajalt
Copy link

ajalt commented Nov 8, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant