summaryrefslogtreecommitdiff
path: root/format.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-03 00:22:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-03 00:22:55 -0400
commit363fb6d55823cb84f49735e795232837a40a4f0c (patch)
tree4849b4aa7f00709bcb920d0971de829492ee6907 /format.cc
parentdfc14dfff3dfc31e21ea7f11f9723de977d6c179 (diff)
downloadfork-ledger-363fb6d55823cb84f49735e795232837a40a4f0c.tar.gz
fork-ledger-363fb6d55823cb84f49735e795232837a40a4f0c.tar.bz2
fork-ledger-363fb6d55823cb84f49735e795232837a40a4f0c.zip
Got date, payee and accounts back into the register report.
Diffstat (limited to 'format.cc')
-rw-r--r--format.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/format.cc b/format.cc
index 772fa0bc..b1cc0bd8 100644
--- a/format.cc
+++ b/format.cc
@@ -247,18 +247,9 @@ void format_t::format(std::ostream& out_str, scope_t& scope)
if (elem->expr.is_function()) {
call_scope_t args(scope);
args.push_back(long(elem->max_width));
-
- if (elem->max_width == 0)
- elem->expr.get_function()(args).dump(out, elem->min_width);
- else
- out << truncate(elem->expr.get_function()(args).as_string(),
- elem->max_width);
+ elem->expr.get_function()(args).dump(out, elem->min_width);
} else {
- if (elem->max_width == 0)
- elem->expr.calc(scope).dump(out, elem->min_width);
- else
- out << truncate(elem->expr.calc(scope).as_string(),
- elem->max_width);
+ elem->expr.calc(scope).dump(out, elem->min_width);
}
}
catch (const calc_error&) {