mervick / yii2-mthaml

The MtHaml integration for the Yii2 framework.
MIT License
8 stars 1 forks source link

> is not working to trim white space #3

Open starrychloe opened 9 years ago

starrychloe commented 9 years ago

The < and > is not working to trim white space.

      .text-price
        %span>= '$'.sprintf("%.2f", $item->price)
        -if ($item->binPrice)
          %span>= ', BIN: '.sprintf("$%.2f", $item->binPrice)

produces

      <div class="text-price"><span>$80.00</span>          <span>, BIN: $104.00</span>                    </div>

There is still white space around the %span.

Reference: http://haml.info/docs/yardoc/file.REFERENCE.html#whitespace_removal__and_