Fixed an alignment bug in value context display

This commit is contained in:
John Wiegley 2009-02-24 14:53:33 -04:00
parent cca6c204dd
commit d396fa5145

View file

@ -925,9 +925,7 @@ inline std::ostream& operator<<(std::ostream& out, const value_t& val) {
inline string value_context(const value_t& val) { inline string value_context(const value_t& val) {
std::ostringstream buf; std::ostringstream buf;
buf << std::right; val.print(buf, 20, 20, true);
buf.width(20);
val.dump(buf);
return buf.str(); return buf.str();
} }