Ensures parseable and more sensible-looking output in more cases, and behaves more like Ledger's print.
There is still an issue with adding trailing zeroes, which would be nice to prevent.
A reusable library containing hledger’s core functionality. This is
used by most hledger* packages so that they support the same common file
formats, command line options, reports etc.