Is there a way to suppress line breaks in haml?

So let's say you've got an inline list you're using as a horizontal
menubar.

%ul
  %li one
  %li two
  %li three

resulting in

<pre>
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
</pre>

Well, what you really want is
<pre>
<ul>
<li>one</li><li>two</li><li>three</li>
</ul>
</pre>

because Firefox and Safari treat line breaks between inline elements
as spaces. So in ie the items are adjacent to eachother, and in other
browsers there exists a space between each element.

It would be great to have something like a - (dash) character at the
end of a line that indicates to haml that it should not render a
newline before rendering the next element.

Or have I spaced out an missed a similar feature in the doco?

Thanks for taking the time to read this. A true whitespace snob I am.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to