HamlPy icon indicating copy to clipboard operation
HamlPy copied to clipboard

whitespace removal issue w/ child if statement

Open tensafefrogs opened this issue 12 years ago • 0 comments

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.

tensafefrogs avatar Nov 23 '12 20:11 tensafefrogs