hledger-register-csv: print multiple commodities on one line (#206)
When posting amounts or the running total contain more than one commodity, register-csv now prints them comma-separated on one line, instead of on multiple lines breaking the CSV output. This is may not be ideal for CSV consumers; alternatives include failing with an error, adding columns for additional commodities, ignoring all but one commodity.
This commit is contained in:
		
							parent
							
								
									e6bd0a3bde
								
							
						
					
					
						commit
						7a13934968
					
				| @ -55,5 +55,5 @@ postingsReportItemAsCsvRecord (_, _, _, p, b) = [date,desc,acct,amt,bal] | |||||||
|                              BalancedVirtualPosting -> (\s -> "["++s++"]") |                              BalancedVirtualPosting -> (\s -> "["++s++"]") | ||||||
|                              VirtualPosting -> (\s -> "("++s++")") |                              VirtualPosting -> (\s -> "("++s++")") | ||||||
|                              _ -> id |                              _ -> id | ||||||
|     amt = showMixedAmountWithoutPrice $ pamount p |     amt = showMixedAmountOneLineWithoutPrice $ pamount p | ||||||
|     bal = showMixedAmountWithoutPrice b |     bal = showMixedAmountOneLineWithoutPrice b | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user