diff --git a/functions.cpp b/functions.cpp index 5bef28f7fe..1c51f805cb 100644 --- a/functions.cpp +++ b/functions.cpp @@ -771,6 +771,9 @@ namespace Sass { if (dynamic_cast(arg)) { return new (ctx.mem) Null(pstate); } + else if (List* list = dynamic_cast(arg)) { + return list; + } else if (String_Quoted* string_quoted = dynamic_cast(arg)) { String_Constant* result = new (ctx.mem) String_Constant(pstate, string_quoted->value()); // remember if the string was quoted (color tokens) @@ -778,7 +781,7 @@ namespace Sass { return result; } To_String to_string(&ctx); - return new (ctx.mem) String_Constant(pstate, unquote(string(arg->perform(&to_string)))); + return new (ctx.mem) String_Constant(pstate, string(arg->perform(&to_string))); } Signature quote_sig = "quote($string)";