From b16018a1a9ec1c761c682d09617953400700b278 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Mon, 26 Oct 2015 23:59:00 +1100 Subject: [PATCH] Fix regression in interpolated selectors 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 #1217 --- src/eval.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/eval.cpp b/src/eval.cpp index badcc19177..f5e59aef78 100644 --- a/src/eval.cpp +++ b/src/eval.cpp @@ -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())); }