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.
		
			
				
	
	
		
			85 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			85 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # ALl output should preserve alignment etc. when showing wide characters
 | |
| # (in apps and fonts which render wide chars as exactly double width).
 | |
| #
 | |
| # XXX add commodity symbols and prices to the sample journals
 | |
| # XXX how to test hledger-ui ?
 | |
| 
 | |
| # 1.
 | |
| hledger -f - print
 | |
| <<<
 | |
| 2014-01-01 transaction 1
 | |
|   㐀                                          㐃㐃1 @ 2 㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂
 | |
|   㐀:㐁                                       ;㐃㐃-1
 | |
| 
 | |
| 2014-01-02 transaction 2
 | |
|   㐀:㐁:㐂                                    USD 1
 | |
|   㐀:㐁:㐂:㐃                                EUR -1
 | |
| 
 | |
| 2014-01-03 transaction 3
 | |
|   㐀:㐁:㐂:㐃:㐄                                  1
 | |
|   㐀                                            -1
 | |
| >>>
 | |
| 2014/01/01 transaction 1
 | |
|     㐀       㐃㐃1 @ 2 㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂㐂
 | |
|     㐀:㐁        ; 㐃㐃-1
 | |
| 
 | |
| 2014/01/02 transaction 2
 | |
|     㐀:㐁:㐂              USD 1
 | |
|     㐀:㐁:㐂:㐃          EUR -1
 | |
| 
 | |
| 2014/01/03 transaction 3
 | |
|     㐀:㐁:㐂:㐃:㐄               1
 | |
|     㐀                          -1
 | |
| 
 | |
| >>>2
 | |
| >>>=0
 | |
| 
 | |
| # 2.
 | |
| hledger -f chinese.journal register --width 80
 | |
| >>>
 | |
| 2014/01/01 transaction 1        㐀                               1             1
 | |
|                                 㐀:㐁                           -1             0
 | |
| 2014/01/02 transaction 2        㐀:㐁:㐂                         1             1
 | |
|                                 㐀:㐁:㐂:㐃                     -1             0
 | |
| 2014/01/03 transaction 3        㐀:㐁:㐂:㐃:㐄                   1             1
 | |
|                                 㐀                              -1             0
 | |
| >>>2
 | |
| >>>=0
 | |
| 
 | |
| # 3.
 | |
| hledger -f chinese.journal balance
 | |
| >>>
 | |
|                    0  㐀:㐁
 | |
|                    1    㐂
 | |
|                    0      㐃
 | |
|                    1        㐄
 | |
| --------------------
 | |
|                    0
 | |
| >>>2
 | |
| >>>=0
 | |
| 
 | |
| # 4.
 | |
| hledger -f chinese.journal balance -Y
 | |
| >>>
 | |
| Balance changes in 2014:
 | |
| 
 | |
|                 || 2014 
 | |
| ================++======
 | |
|  㐀:㐁          ||   -1 
 | |
|  㐀:㐁:㐂       ||    1 
 | |
|  㐀:㐁:㐂:㐃    ||   -1 
 | |
|  㐀:㐁:㐂:㐃:㐄 ||    1 
 | |
| ----------------++------
 | |
|                 ||    0 
 | |
| >>>2
 | |
| >>>=0
 | |
| 
 | |
| # 5.
 | |
| 
 | |
| # 6.
 | |
| 
 | |
| # 7.
 | |
| 
 | |
| # 8.
 | |
| 
 |