Skip to content

Commit ada6c37

Browse files
committed
Merge pull request sass#818 from xzyfer/fix/normalize-string-func-params
Normalise CSS function string arguments to double quotes
2 parents 0a2fedb + 8ff5893 commit ada6c37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inspect.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,11 @@ namespace Sass {
607607
if (a->value()->concrete_type() == Expression::NULL_VAL) {
608608
return;
609609
}
610-
a->value()->perform(this);
610+
if (a->value()->concrete_type() == Expression::STRING) {
611+
String_Constant* s = static_cast<String_Constant*>(a->value());
612+
if (s->is_quoted()) s->value(quote(unquote(s->value()), String_Constant::double_quote()));
613+
s->perform(this);
614+
} else a->value()->perform(this);
611615
if (a->is_rest_argument()) {
612616
append_to_buffer("...");
613617
}

0 commit comments

Comments
 (0)