The formatting convention for compact-mode is to add an extra linebreak 
in between each set of rules that don't share a root rule. In the first 
example, "ol, ul" and "caption, th" don't share a root, so they have a 
linebreak. In the second example, they do, so the linebreak isn't present.

- Nathan

elliottcable wrote:
> In rendering (with mode set to compact) this SASS source...
> <pre>ol, ul
>   list-style: none
>
> caption, th
>   text-align: left</pre>
> ... I get this output:
> <pre>ol, ul { list-style: none; }
>
> caption, th { text-align: left; }
> </pre>
>
> Compare to this source...
> <pre>html
>   ol, ul
>     list-style: none
>
>   caption, th
>     text-align: left</pre>
> ..and output:
> <pre>html ol, html ul { list-style: none; }
> html caption, html th { text-align: left; }</pre>
>
> Notice the whitespace - there seems to be, for some odd reason, a
> random (and unwanted) linebreak inserted between items defined at the
> root level (as in, not under another selector or whatnot). Is this a
> bug, or a 'feature' that I need to turn off?
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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