Commit f187b3ab by Aaron Leung

Fixing another bug in the expansion flattener.

parent 82051828
......@@ -20,8 +20,9 @@ namespace Sass {
ip_->has_statements |= expn.has_statements();
ip_->has_blocks |= expn.has_blocks();
ip_->has_expansions |= expn.has_expansions();
// leave the expansion node here and skip it during emission
insert(begin() + i + 1, expn.begin(), expn.end());
// TO DO: make this more efficient -- replace with a dummy node instead of erasing
ip_->children.erase(begin() + i);
insert(begin() + i, expn.begin(), expn.end());
}
}
}
......
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