diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-08-01 11:20:55 -0700 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2013-08-01 11:20:55 -0700 |
commit | d2ee0bfda4bff9ab5ea800699612e6c6c5470cf6 (patch) | |
tree | 35e8f36316230dd9cd0952831c257ef544afb277 | |
parent | 92d0e5b456ca1418f1f47bb752aed7d4fb6eda90 (diff) | |
download | pyscss-d2ee0bfda4bff9ab5ea800699612e6c6c5470cf6.tar.gz |
enumerate() should never return quoted strings.
-rw-r--r-- | scss/functions/compass/helpers.py | 2 | ||||
-rw-r--r-- | scss/tests/functions/compass/test_helpers.py | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/scss/functions/compass/helpers.py b/scss/functions/compass/helpers.py index 4fc9062..62bdfbb 100644 --- a/scss/functions/compass/helpers.py +++ b/scss/functions/compass/helpers.py @@ -302,7 +302,7 @@ def enumerate_(prefix, frm, through, separator='-'): ret = [] for i in rev(range(frm, through + 1)): if prefix.value: - ret.append(StringValue(prefix.value + separator + str(i), quotes=prefix.quotes)) + ret.append(StringValue(prefix.value + separator + str(i), quotes=None)) else: ret.append(NumberValue(i)) diff --git a/scss/tests/functions/compass/test_helpers.py b/scss/tests/functions/compass/test_helpers.py index 7e8b40a..db095cc 100644 --- a/scss/tests/functions/compass/test_helpers.py +++ b/scss/tests/functions/compass/test_helpers.py @@ -76,6 +76,7 @@ def test_first_value_of(calc): def test_enumerate(calc): assert calc('enumerate(foo, 4, 7)') == calc('foo-4, foo-5, foo-6, foo-7') + assert calc('enumerate("bar", 8, 10)') == calc('bar-8, bar-9, bar-10') # headers/headings |