summaryrefslogtreecommitdiff
path: root/reports.cc
diff options
context:
space:
mode:
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);