Skip to content

Commit 7ed376f

Browse files
committed
Merge pull request #1389 from mgreter/bugfix/issue-1376
Fix interpolation of lists with null values
2 parents fe37d44 + 046e78f commit 7ed376f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/eval.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,9 +879,11 @@ namespace Sass {
879879
if (ctx.output_style != COMPRESSED && sep == ",") sep += " ";
880880
bool initial = false;
881881
for(auto item : list->elements()) {
882-
if (initial) acc += sep;
883-
acc += interpolation(item);
884-
initial = true;
882+
if (item->concrete_type() != Expression::NULL_VAL) {
883+
if (initial) acc += sep;
884+
acc += interpolation(item);
885+
initial = true;
886+
}
885887
}
886888
return evacuate_quotes(acc);
887889
} else if (Variable* var = dynamic_cast<Variable*>(s)) {

0 commit comments

Comments
 (0)