HamlPy
HamlPy copied to clipboard
whitespace removal issue w/ child if statement
Hi, I believe I've found a bug in the whitespace removal:
I have the following code in a template:
%a.media-heading.lead{ 'href': "#{ link.link.url }" }<
- if link.link.title
= link.link.title
- else
= link.link.url|truncatechars:40
This always results in a space after the text inside the a tag.
If I remove the if statement, the whitespace is removed correctly.
The issue seems to be with an extra indent before the closing a tag. Let me know if I can be of any more help with this.