Tabular reports from bal, bs etc. have until now been rendered on the terminal with one final blank line, for readability. This change drops the blank line. This is consistent with the non-tabular balance and register output (not print, which is a special case), and with most unix commands. The real reason for it, which I admit is flimsy, is that I can now omit the final delimiter (>=0) when using shelltestrunner 1.9's new format, making functional tests easier to maintain and more readable. If there's opposition, this could be reverted.
61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
# 1. all data files on the command line should be read
|
|
hledger inc -f personal.journal -f business.journal
|
|
>>>
|
|
Income Statement 2014/01/01-2014/01/02
|
|
|
|
|| 2014/01/01-2014/01/02
|
|
==========================++=======================
|
|
Revenues ||
|
|
--------------------------++-----------------------
|
|
--------------------------++-----------------------
|
|
||
|
|
==========================++=======================
|
|
Expenses ||
|
|
--------------------------++-----------------------
|
|
expenses:food || $1
|
|
expenses:office supplies || $1
|
|
--------------------------++-----------------------
|
|
|| $2
|
|
==========================++=======================
|
|
Net: || $-2
|
|
>>>2
|
|
>>>=0
|
|
|
|
# 2. aliases etc. in files currently don't carry over to subsequent files
|
|
hledger print -f personal.journal -f business.journal -f alias.journal -f personal.journal
|
|
>>>
|
|
2014/01/01
|
|
expenses:office supplies $1
|
|
assets:business checking
|
|
|
|
2014/01/02
|
|
expenses:food $1
|
|
assets:cash
|
|
|
|
2014/01/02
|
|
expenses:food $1
|
|
assets:cash
|
|
|
|
>>>2
|
|
>>>=0
|
|
# 2014/01/02
|
|
# equity:draw:personal:food $1
|
|
# assets:personal:cash $-1
|
|
|
|
|
|
# 3. files can be of different formats
|
|
hledger print -f personal.journal -f ../journal/a.timeclock -f ../journal/b.timedot
|
|
>>>
|
|
2014/01/02
|
|
expenses:food $1
|
|
assets:cash
|
|
|
|
2016/01/01 * 12:00-16:00
|
|
(a:aa) 4.00h
|
|
|
|
2016/01/01 *
|
|
(b.bb) 1.00
|
|
|
|
>>>2
|
|
>>>=0
|