diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-09-04 17:03:24 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2014-09-04 17:03:24 -0700 |
commit | 56d41a030bd316b9c8094883192090cdf44b3f90 (patch) | |
tree | 0c2963d0c0d9774906f42bcc643e05ca2ed09bc3 /scss/types.py | |
parent | 43270e40f6ae288a7c00a61302cb686d290ccae0 (diff) | |
download | pyscss-56d41a030bd316b9c8094883192090cdf44b3f90.tar.gz |
Give up on matching Ruby's quoting behavior for now.
Diffstat (limited to 'scss/types.py')
-rw-r--r-- | scss/types.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scss/types.py b/scss/types.py index b8fc23f..afc8b2a 100644 --- a/scss/types.py +++ b/scss/types.py @@ -1167,9 +1167,11 @@ class String(Value): def _render_quoted(self): # Strictly speaking, the only things we need to quote are the quotes # themselves, backslashes, and newlines. - # TODO Ruby Sass's behavior is to always use double quotes (and - # otherwise preserve the original literal in uncompressed mode) for - # computed strings, whereas we preserve a single quote in some cases + # TODO Ruby Sass takes backslashes in barewords literally, but treats + # backslashes in quoted strings as escapes -- their mistake? + # TODO In Ruby Sass, generated strings never have single quotes -- but + # neither do variable interpolations, so I'm not sure what they're + # doing quote = self.quotes ret = self.value |