summaryrefslogtreecommitdiff
path: root/src/output.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-27 19:01:55 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-27 19:01:55 -0400
commitaae134f69275e4f71ec70d893cdfd0b5839fef8e (patch)
tree57413e98e1adafe38315a7397b24ca350690c853 /src/output.cc
parentcbf8f355d16224bc119e2d41a22a1d0b9d7bf0ff (diff)
downloadfork-ledger-aae134f69275e4f71ec70d893cdfd0b5839fef8e.tar.gz
fork-ledger-aae134f69275e4f71ec70d893cdfd0b5839fef8e.tar.bz2
fork-ledger-aae134f69275e4f71ec70d893cdfd0b5839fef8e.zip
Fixed a display issue with the balance report
Diffstat (limited to 'src/output.cc')
-rw-r--r--src/output.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/output.cc b/src/output.cc
index b1a8cb1b..371319bd 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -54,10 +54,10 @@ format_posts::format_posts(report_t& _report,
first_line_format.parse(string(f, 0, p - f));
const char * n = p + 2;
if (const char * p = std::strstr(n, "%/")) {
- next_lines_format.parse(string(n, 0, p - n));
- between_format.parse(string(p + 2));
+ next_lines_format.parse(string(n, 0, p - n), first_line_format);
+ between_format.parse(string(p + 2), first_line_format);
} else {
- next_lines_format.parse(n);
+ next_lines_format.parse(n, first_line_format);
}
} else {
first_line_format.parse(format);
@@ -125,14 +125,14 @@ format_accounts::format_accounts(report_t& _report,
account_line_format.parse(string(f, 0, p - f));
const char * n = p + 2;
if (const char * p = std::strstr(n, "%/")) {
- total_line_format.parse(string(n, 0, p - n));
- separator_format.parse(string(p + 2));
+ total_line_format.parse(string(n, 0, p - n), account_line_format);
+ separator_format.parse(string(p + 2), account_line_format);
} else {
- total_line_format.parse(n);
+ total_line_format.parse(n, account_line_format);
}
} else {
account_line_format.parse(format);
- total_line_format.parse(format);
+ total_line_format.parse(format, account_line_format);
}
}