diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-13 19:25:15 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-13 19:25:15 -0400 |
commit | a9061811ce85362cf0590f76466673939df9c2c2 (patch) | |
tree | e14bd5e31621cae966fd2fab1025c8ac77f97d88 /src/format.cc | |
parent | b345a45c9bd80fd1171e31f43a0f423f7d891a95 (diff) | |
download | fork-ledger-a9061811ce85362cf0590f76466673939df9c2c2.tar.gz fork-ledger-a9061811ce85362cf0590f76466673939df9c2c2.tar.bz2 fork-ledger-a9061811ce85362cf0590f76466673939df9c2c2.zip |
Greatly improved output from the "format" command
It now shows the formatted result against a sample entry, similar to
what "parse" now does.
Diffstat (limited to 'src/format.cc')
-rw-r--r-- | src/format.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/format.cc b/src/format.cc index 3bbb2b13..f881cf37 100644 --- a/src/format.cc +++ b/src/format.cc @@ -43,15 +43,15 @@ void format_t::element_t::dump(std::ostream& out) const case EXPR: out << " EXPR"; break; } - out << " flags: " << flags(); + out << " flags: 0x" << std::hex << int(flags()); out << " min: "; out << std::right; out.width(2); - out << int(min_width); + out << std::dec << int(min_width); out << " max: "; out << std::right; out.width(2); - out << int(max_width); + out << std::dec << int(max_width); switch (type) { case STRING: out << " str: '" << chars << "'" << std::endl; break; |