summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-28 18:25:12 -0700
committerEevee (Alex Munroe) <eevee.git@veekun.com>2013-08-28 18:25:12 -0700
commit8256ee482995d4f6ce689c7d49949c534846dab3 (patch)
tree5ae33f4428602585fffb8b3b5c415ec1c62afcc1
parent0a6ddb8f92ef0620366f1de0c9b4e8372f4391c2 (diff)
downloadpyscss-8256ee482995d4f6ce689c7d49949c534846dab3.tar.gz
first-value-of() should not autosplit single-item lists.
-rw-r--r--scss/functions/compass/helpers.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scss/functions/compass/helpers.py b/scss/functions/compass/helpers.py
index 72df2e7..db98cec 100644
--- a/scss/functions/compass/helpers.py
+++ b/scss/functions/compass/helpers.py
@@ -92,11 +92,12 @@ def reject(lst, *values):
@register('first-value-of')
def first_value_of(*args):
- args = List.from_maybe_starargs(args)
if len(args) == 1 and isinstance(args[0], String):
first = args[0].value.split()[0]
return type(args[0])(first)
- elif len(args):
+
+ args = List.from_maybe_starargs(args)
+ if len(args):
return args[0]
else:
return Null()