From 0d4fc1b5d68cd092114524a5c15bcd232eeee0fe Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Fri, 10 Oct 2003 19:07:26 +0000 Subject: *** empty log message *** --- reports.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'reports.cc') 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); -- cgit v1.2.3