diff --git a/src/fn_miscs.cpp b/src/fn_miscs.cpp index 6d01c7fae..390cf1a71 100644 --- a/src/fn_miscs.cpp +++ b/src/fn_miscs.cpp @@ -186,11 +186,16 @@ namespace Sass { { Expression* v = ARG("$value", Expression); if (v->concrete_type() == Expression::NULL_VAL) { - return SASS_MEMORY_NEW(String_Quoted, pstate, "null"); + return SASS_MEMORY_NEW(String_Constant, pstate, "null"); } else if (v->concrete_type() == Expression::BOOLEAN && v->is_false()) { - return SASS_MEMORY_NEW(String_Quoted, pstate, "false"); + return SASS_MEMORY_NEW(String_Constant, pstate, "false"); } else if (v->concrete_type() == Expression::STRING) { - return Cast(v); + String_Constant *s = Cast(v); + if (s->quote_mark()) { + return SASS_MEMORY_NEW(String_Constant, pstate, quote(s->value(), s->quote_mark())); + } else { + return s; + } } else { // ToDo: fix to_sass for nested parentheses Sass_Output_Style old_style;