Skip to content

Commit

Permalink
Fix regression in interpolated selectors
Browse files Browse the repository at this point in the history
Ruby Sass explicitly unquotes the results of interpolations in
selectors. This patch is very thorough but it address all the
use cases I think of and it fixes the regression causing people
issues.

Fixes sass#1217
  • Loading branch information
xzyfer committed Oct 26, 2015
1 parent 0eab9d5 commit b16018a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1445,7 +1445,8 @@ namespace Sass {
{
To_String to_string;
// the parser will look for a brace to end the selector
std::string result_str(s->contents()->perform(this)->perform(&to_string) + "{");
std::string result_str(s->contents()->perform(this)->perform(&to_string));
result_str = unquote(Util::rtrim(result_str)) + "{";
Parser p = Parser::from_c_str(result_str.c_str(), ctx, s->pstate());
return operator()(p.parse_selector_list(exp.block_stack.back()->is_root()));
}
Expand Down

0 comments on commit b16018a

Please sign in to comment.