From cf178f66e4c7f0a0d389fc163ca367d5db55ddd3 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Sat, 8 Oct 2011 14:52:26 +0200 Subject: echo output adjustments: same style for vector and range, output boolean values as true/false instead of 1/0 diff --git a/src/value.cc b/src/value.cc index 685bf81..6685594 100644 --- a/src/value.cc +++ b/src/value.cc @@ -352,19 +352,19 @@ std::string Value::toString() const stream << ']'; break; case RANGE: - stream << "[ " + stream << '[' << this->range_begin << " : " << this->range_step << " : " << this->range_end - << " ]"; + << ']'; break; case NUMBER: stream << this->num; break; case BOOL: - stream << this->b; + stream << (this->b ? "true" : "false"); break; default: stream << "undef"; -- cgit v0.10.1