summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-01-14 00:32:37 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-01-14 00:32:37 -0400
commit3bea2b1181628c2eb3c5081a60e5fdd6659de68c (patch)
tree8c76f44c1c55b5b1927b29a6f98c937dbf6413a4 /src
parent97d78960694c2078324b6b6af3c7436e30ddc658 (diff)
downloadledger-3bea2b1181628c2eb3c5081a60e5fdd6659de68c.tar.gz
ledger-3bea2b1181628c2eb3c5081a60e5fdd6659de68c.tar.bz2
ledger-3bea2b1181628c2eb3c5081a60e5fdd6659de68c.zip
Output newlines between entries using format strings, not hard-coded.
Diffstat (limited to 'src')
-rw-r--r--src/output.cc2
-rw-r--r--src/session.cc2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/output.cc b/src/output.cc
index 3db202cd..87f75e38 100644
--- a/src/output.cc
+++ b/src/output.cc
@@ -48,12 +48,10 @@ format_xacts::format_xacts(report_t& _report, const string& format)
between_format.parse(string(p + 2));
} else {
next_lines_format.parse(n);
- between_format.parse("\n");
}
} else {
first_line_format.parse(format);
next_lines_format.parse(format);
- between_format.parse("\n");
}
}
diff --git a/src/session.cc b/src/session.cc
index be7256a5..961261e8 100644
--- a/src/session.cc
+++ b/src/session.cc
@@ -79,7 +79,7 @@ session_t::session_t()
("%-.9D %-.35P %-.39A %22.108t %!22.132T\n%/"
"%48|%-.38A %22.108t %!22.132T\n"),
print_format
- ("%(date)%(cleared ? \" *\" : (uncleared ? \"\" : \" !\"))%(code ? \" (\" + code + \")\" : \"\") %(payee)\n %-34(account) %12(amount)\n%/ %-34(account) %12(amount)%(note ? \" ; \" + note : \"\")\n"),
+ ("%(date)%(cleared ? \" *\" : (uncleared ? \"\" : \" !\"))%(code ? \" (\" + code + \")\" : \"\") %(payee)\n %-34(account) %12(amount)\n%/ %-34(account) %12(amount)%(note ? \" ; \" + note : \"\")\n%/\n"),
balance_format
("%20(total_expr) %(depth_spacer)%-(partial_account)\n"),
equity_format