From 3bea2b1181628c2eb3c5081a60e5fdd6659de68c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 14 Jan 2009 00:32:37 -0400 Subject: Output newlines between entries using format strings, not hard-coded. --- src/output.cc | 2 -- src/session.cc | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3