Skip to content

Commit

Permalink
quote StringValue with single quotes, a la QuotedStringValue.__str__
Browse files Browse the repository at this point in the history
- 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
Ben Newman committed Feb 6, 2012
1 parent 37396ef commit 160de91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scss/__init__.py
Expand Up @@ -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):
Expand Down

0 comments on commit 160de91

Please sign in to comment.