summaryrefslogtreecommitdiff
path: root/reports.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2003-10-10 19:07:26 +0000
committerJohn Wiegley <johnw@newartisans.com>2003-10-10 19:07:26 +0000
commit0d4fc1b5d68cd092114524a5c15bcd232eeee0fe (patch)
treeec6df96f2996e2f1bb0f867aeaee8b84c6e21f86 /reports.cc
parent60fa58e847fd8368059e13e6d9b941fc0e75291b (diff)
downloadfork-ledger-0d4fc1b5d68cd092114524a5c15bcd232eeee0fe.tar.gz
fork-ledger-0d4fc1b5d68cd092114524a5c15bcd232eeee0fe.tar.bz2
fork-ledger-0d4fc1b5d68cd092114524a5c15bcd232eeee0fe.zip
*** empty log message ***
Diffstat (limited to 'reports.cc')
-rw-r--r--reports.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/reports.cc b/reports.cc
index 175a7d4d..ea76199d 100644
--- a/reports.cc
+++ b/reports.cc
@@ -231,9 +231,13 @@ void print_register(const std::string& acct_name, std::ostream& out,
} else {
xact = *x;
}
+ std::string xact_str = xact->acct_as_str();
+
+ if (xact == *x && ! show_subtotals)
+ xact_str = "(Splits...)";
out.width(22);
- out << std::left << truncated(xact->acct_as_str(), 22) << " ";
+ out << std::left << truncated(xact_str(), 22) << " ";
out.width(12);
out << std::right << street->as_str(true);