Andrew Vit
unread,Nov 21, 2009, 3:38:48 PM11/21/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to compas...@googlegroups.com
Hi group,
This was recently brought up in another syntax thread, but I think it warrants its own discussion. How would you quote the following?
I started out with a string with double-quotes that I pasted into my sass file. In the end the syntax forced me to change them to single quotes or else I’d have to escape them. Do I need to use backslashes to escape double quotes or is there some behaviour between single and double quotes that I’m just not getting?
I’m using the current haml-edge 2.3.88 gem.
!lucida_font_stack = "Lucida Grande", Verdana, sans-serif
Implicit strings have been deprecated and will be removed in version 2.4.
'serif' was not quoted. Please add double quotes (e.g. "serif").
!lucida_font_stack = '"Lucida Grande", Verdana, sans-serif'
(outputs the whole thing within single quotes: one long font name)
!lucida_font_stack = "\"Lucida Grande\", Verdana, sans-serif"
(works correctly, for double quoted strings in output)
!lucida_font_stack = "'Lucida Grande', Verdana, sans-serif"
(works correctly, for single quoted strings in output)
Thanks,
Andrew Vit