Commit cd6042d5 by Aaron Leung

Fixing some more quoting/unquoting stuff.

parent e7267cba
...@@ -313,6 +313,7 @@ namespace Sass { ...@@ -313,6 +313,7 @@ namespace Sass {
result += at(i).to_string(identifier_schema); result += at(i).to_string(identifier_schema);
} }
} }
if (is_quoted()) result = "\"" + result + "\"";
return result; return result;
} break; } break;
...@@ -327,6 +328,7 @@ namespace Sass { ...@@ -327,6 +328,7 @@ namespace Sass {
result += chunk; result += chunk;
} }
} }
if (is_unquoted()) result = result.substr(1, result.length() - 2);
return result; return result;
} break; } break;
...@@ -335,8 +337,12 @@ namespace Sass { ...@@ -335,8 +337,12 @@ namespace Sass {
for (size_t i = 0, S = size(); i < S; ++i) { for (size_t i = 0, S = size(); i < S; ++i) {
result += at(i).to_string().substr(1, at(i).token().length()-2); result += at(i).to_string().substr(1, at(i).token().length()-2);
} }
if (inside_of == identifier_schema || inside_of == property) return result; // if (inside_of == identifier_schema || inside_of == property) return result;
else return "\"" + result + "\""; // else return "\"" + result + "\"";
if (!(inside_of == identifier_schema || inside_of == property) && !is_unquoted()) {
result = "\"" + result + "\"";
}
return result;
} break; } break;
case warning: { case warning: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment