Output newlines between entries using format strings, not hard-coded.

This commit is contained in:
John Wiegley 2009-01-14 00:32:37 -04:00
parent 97d7896069
commit 3bea2b1181
2 changed files with 1 additions and 3 deletions

View file

@ -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");
}
}

View file

@ -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