diff options
author | Don Bright <hugh.m.bright@gmail.com> | 2011-11-13 16:40:20 (GMT) |
---|---|---|
committer | Don Bright <hugh.m.bright@gmail.com> | 2011-11-13 16:40:20 (GMT) |
commit | 1f9ce62573b65715e7b134ad4d8c8079fc28aa44 (patch) | |
tree | 40ac192b4d368cccc12e7b4e36c3dc7da5fba72f /src/value.cc | |
parent | 3eb466b5a9dcb7507045898efc7ad52226f54782 (diff) | |
parent | 2cfcdf557d7742422965035a64ef617ac043a429 (diff) |
Merge branch 'master' into cakebaby
Diffstat (limited to 'src/value.cc')
-rw-r--r-- | src/value.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/value.cc b/src/value.cc index e08b2d8..ab78c2a 100644 --- a/src/value.cc +++ b/src/value.cc @@ -343,7 +343,7 @@ std::string Value::toString() const switch (this->type) { case STRING: - stream << '"' << this->text << '"'; + stream << this->text; break; case VECTOR: stream << '['; @@ -411,7 +411,8 @@ void Value::append(Value *val) std::ostream &operator<<(std::ostream &stream, const Value &value) { - stream << value.toString(); + if (value.type == Value::STRING) stream << QuotedString(value.toString()); + else stream << value.toString(); return stream; } |