ext/libsass/src/to_string.cpp in sassc-1.8.1 vs ext/libsass/src/to_string.cpp in sassc-1.8.2

- old
+ new

@@ -8,19 +8,20 @@ #include "context.hpp" #include "to_string.hpp" namespace Sass { - To_String::To_String(Context* ctx, bool in_declaration) - : ctx(ctx), in_declaration(in_declaration) { } + To_String::To_String(Context* ctx, bool in_declaration, bool in_debug) + : ctx(ctx), in_declaration(in_declaration), in_debug(in_debug) { } To_String::~To_String() { } inline std::string To_String::fallback_impl(AST_Node* n) { Emitter emitter(ctx); Inspect i(emitter); i.in_declaration = in_declaration; + i.in_debug = in_debug; if (n) n->perform(&i); return i.get_buffer(); } inline std::string To_String::operator()(String_Schema* s) @@ -41,7 +42,7 @@ { return s->value(); } inline std::string To_String::operator()(Null* n) - { return ""; } + { return in_debug ? "null" : ""; } }