Skip to content

Commit

Permalink
Merge pull request sass#1389 from mgreter/bugfix/issue-1376
Browse files Browse the repository at this point in the history
Fix interpolation of lists with null values
  • Loading branch information
mgreter committed Jul 26, 2015
2 parents fe37d44 + 046e78f commit 7ed376f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -879,9 +879,11 @@ namespace Sass {
if (ctx.output_style != COMPRESSED && sep == ",") sep += " ";
bool initial = false;
for(auto item : list->elements()) {
if (initial) acc += sep;
acc += interpolation(item);
initial = true;
if (item->concrete_type() != Expression::NULL_VAL) {
if (initial) acc += sep;
acc += interpolation(item);
initial = true;
}
}
return evacuate_quotes(acc);
} else if (Variable* var = dynamic_cast<Variable*>(s)) {
Expand Down

0 comments on commit 7ed376f

Please sign in to comment.