Trimming whitespace in my view template

<ul>    <% for ... %>    <li>..</li>    <% end %>   <li>..</li>   <li>..</li> </ul>

The above sample ends up giving me double spacing between the <li> elements.

I was told that <% for -%> will remove them, but it is also adding more tabs in the loop...so my generated html looks like:

<ul>           <li>...</li>           <li>...</li>           <li>...</li>     <li>...</li>     <li>...</li> </ul>

I realize this is rather insigificant but my sources is more difficult to read when debugging if tabstop is not the same.

What I want is: <ul>     <li>...</li>     <li>...</li>     <li>...</li>     <li>...</li>     <li>...</li> </ul>

Update: I found this works, but would like to set this behavior as the default if possible...

<%- for ... -%>   <li>..</li> <%- end -%>

The "-" strips beg/end white space.although a link to documentation on its usage would be good.