Related to #563, when rendering a transaction, we reserve two more chars of width so that amounts remain aligned when there are posting flags. Affects hledger-ui's transaction screen, print, hledger-rewrite etc.
		
			
				
	
	
		
			38 lines
		
	
	
		
			520 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
		
			520 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # 1. print shows both primary and secondary dates. The second's year defaults to the first's.
 | |
| hledger -f - print
 | |
| <<<
 | |
| 2000/1/1=3/3
 | |
|   (a)  1
 | |
| 
 | |
| 2000/1/2=2/2
 | |
|   (b)  1
 | |
| 
 | |
| >>>
 | |
| 2000/01/01=2000/03/03
 | |
|     (a)               1
 | |
| 
 | |
| 2000/01/02=2000/02/02
 | |
|     (b)               1
 | |
| 
 | |
| >>>2
 | |
| >>>= 0
 | |
| 
 | |
| # 2. With --date2, the secondary date is used for sorting.
 | |
| hledger -f - print --date2
 | |
| <<<
 | |
| 2000/1/1=3/3
 | |
|   (a)  1
 | |
| 
 | |
| 2000/1/2=2/2
 | |
|   (b)  1
 | |
| 
 | |
| >>>
 | |
| 2000/01/02=2000/02/02
 | |
|     (b)               1
 | |
| 
 | |
| 2000/01/01=2000/03/03
 | |
|     (a)               1
 | |
| 
 | |
| >>>2
 | |
| >>>= 0
 |