Permalink
Browse files

quote StringValue with single quotes, a la QuotedStringValue.__str__

- CSS such as this

    div {
      label: 'a b';
    }

  was being compiled to this

    div{label:a b}

  when this

    div{label:'a b'}

  is what was intended.
  • Loading branch information...
1 parent 37396ef commit 160de9167a5a33665307b0deafea567d60d19198 Ben Newman committed Feb 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 scss/__init__.py
View
@@ -4500,7 +4500,7 @@ def merge(self, obj):
class StringValue(QuotedStringValue):
def __str__(self):
- return self.value
+ return "'%s'" % escape(self.value)
def __add__(self, other):
if isinstance(other, ListValue):

0 comments on commit 160de91

Please sign in to comment.