Skip to content

Commit

Permalink
Normalize quote_mark and was_quoted #2
Browse files Browse the repository at this point in the history
  • Loading branch information
mgreter committed Feb 21, 2015
1 parent 1288b7e commit 5f3e5cc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion debugger.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,6 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
cerr << ind << "String_Quoted : " << expression << " [" << prettyprint(expression->value()) << "]" <<
(expression->is_delayed() ? " {delayed}" : "") <<
(expression->sass_fix_1291() ? " {sass_fix_1291}" : "") <<
(expression->was_quoted() ? " {quoted}" : "") <<
(expression->quote_mark() != 0 ? " {qm:" + string(1, expression->quote_mark()) + "}" : "") <<
" <" << prettyprint(expression->pstate().token.ws_before()) << "> X <" << prettyprint(expression->pstate().token.ws_after()) << ">" << endl;
} else if (dynamic_cast<String_Constant*>(node)) {
Expand Down
2 changes: 1 addition & 1 deletion output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ return;
void Output::operator()(String_Quoted* s)
{
// cerr << "OUTPUT [" << s->value() << "]\n";
if (s->was_quoted()) {
if (s->quote_mark()) {
append_to_buffer(quote((s->value()), s->quote_mark()));
} else {
append_to_buffer(string_to_output(s->value()));
Expand Down

0 comments on commit 5f3e5cc

Please sign in to comment.