This looks like a bug.

As a workaround, try changing = to :

The = operator has different semantics for quoted strings for backwards compatibilty.

Hunt & pecked on my iPhone... Sorry if it's brief!

On May 4, 2010, at 10:00 AM, Richard Livsey <[email protected]> wrote:

Prior to upgrading to the latest (master) version of HAML, I had the
following setup:
!standard_font  = "Lucida Grande", Tahoma, Arial, sans-serif

This was then used in various places as:
font-famly= !standard_font

This all worked fine and output as expected as:
font-family: "Lucida Grande", Tahoma, Arial, sans-serif;

However after upgrading I'm now getting this output as the following:
font-family: unquote("Lucida Grande"), Tahoma, Arial, sans-serif;

After a few experiments, the quoting behaviour seems to differ when
there's more than one font in the list and I can't find any way to get
the effect I desire.


SASS:
.inline
 font-family: "Lucida Grande"

CSS:
.inline { font-family: "Lucida Grande"; }


SASS:
!array_of_fonts= "Lucida Grande", '"Arial"', Testing
.array
 font-family= !array_of_fonts

CSS:
.array { font-family: unquote("Lucida Grande"), unquote('"Arial"'), Testing; }


SASS:
!one_quoted_font= '"Lucida Grande"'
.one
 font-family= !one_quoted_font

CSS:
.one { font-family: "Lucida Grande"; }


Is this a known issue?

Thanks

--
Richard Livsey
Minutebase - Online Meeting Minutes
http://minutebase.com
http://livsey.org

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


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