Skip to content

Commit

Permalink
fix source map generation
Browse files Browse the repository at this point in the history
source maps where not correctly generated for:
.foo {
    position: absolute;
    asdfasdfasdfasdf-#{aaa} : 123;
}

this patch removes the ctx from To_String during eval as we don't need source map update_column calls during Eval
  • Loading branch information
nsams committed May 14, 2014
1 parent edff617 commit e231c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ namespace Sass {
Expression* Eval::operator()(String_Schema* s)
{
string acc;
To_String to_string(&ctx);
To_String to_string(0);
for (size_t i = 0, L = s->length(); i < L; ++i) {
string chunk((*s)[i]->perform(this)->perform(&to_string));
if (((s->quote_mark() && is_quoted(chunk)) || !s->quote_mark()) && (*s)[i]->is_interpolant()) { // some redundancy in that test
Expand Down

0 comments on commit e231c6c

Please sign in to comment.