Skip to content

Commit 6ab00d9

Browse files
committed
Merge pull request #989 from mgreter/bugfix/issue_988
Implement correct output for empty strings
2 parents 937ccf8 + 33a9107 commit 6ab00d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

functions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ namespace Sass {
942942
error(msg, pstate, backtrace);
943943
}
944944
catch (...) { throw; }
945-
return new (ctx.mem) String_Constant(pstate, newstr);
945+
return new (ctx.mem) String_Quoted(pstate, newstr);
946946
}
947947

948948
Signature to_upper_case_sig = "to-upper-case($string)";

output.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ namespace Sass {
134134
String_Constant* valConst = static_cast<String_Constant*>(dec->value());
135135
string val(valConst->value());
136136
if (dynamic_cast<String_Quoted*>(valConst)) {
137-
if (val.empty()) {
137+
if (!valConst->quote_mark() && val.empty()) {
138138
bPrintExpression = false;
139139
}
140140
}

0 commit comments

Comments
 (0)