lib: "decimal point" -> "decimal separator" in error message
This commit is contained in:
		
							parent
							
								
									e35dd19cc8
								
							
						
					
					
						commit
						13436637c6
					
				| @ -309,7 +309,7 @@ commoditydirectiveonelinep = do | ||||
|   else modify' (\j -> j{jcommodities=M.insert acommodity comm $ jcommodities j}) | ||||
| 
 | ||||
| pleaseincludedecimalpoint :: String | ||||
| pleaseincludedecimalpoint = "to avoid ambiguity, please include a decimal point in commodity directives" | ||||
| pleaseincludedecimalpoint = "to avoid ambiguity, please include a decimal separator in commodity directives" | ||||
| 
 | ||||
| -- | Parse a multi-line commodity directive, containing 0 or more format subdirectives. | ||||
| -- | ||||
| @ -470,7 +470,6 @@ commodityconversiondirectivep = do | ||||
| 
 | ||||
| --- ** transactions | ||||
| 
 | ||||
| -- TODO transactionmodifierp ? transactionrewritep ? | ||||
| transactionmodifierp :: JournalParser m TransactionModifier | ||||
| transactionmodifierp = do | ||||
|   char '=' <?> "modifier transaction" | ||||
|  | ||||
| @ -123,7 +123,7 @@ $ hledger -f- bal -V -N | ||||
| 
 | ||||
| $ hledger -f- reg amt:1 | ||||
| 
 | ||||
| # 10. This commodity directive should complain about a missing decimal point, | ||||
| # 10. This commodity directive should complain about a missing decimal separator, | ||||
| # which we now require. | ||||
| < | ||||
| commodity 1 000  USD | ||||
| @ -132,7 +132,7 @@ commodity 1 000  USD | ||||
|   (a)   USD1 000 | ||||
| 
 | ||||
| $ hledger -f- bal | ||||
| >2 /decimal point/ | ||||
| >2 /decimal separator/ | ||||
| >=1 | ||||
| 
 | ||||
| # 11. After a space-grouped amount, a posting comment should parse. | ||||
|  | ||||
| @ -126,11 +126,11 @@ commodity €1,000.00 | ||||
| >>>2 | ||||
| >>>=0 | ||||
| 
 | ||||
| # 11. Commodity directive requires a decimal point | ||||
| # 11. Commodity directive requires a decimal separator | ||||
| hledger bal -f - | ||||
| <<< | ||||
| commodity 1000 EUR | ||||
| >>>2 /please include a decimal point/ | ||||
| >>>2 /please include a decimal separator/ | ||||
| >>>=1 | ||||
| 
 | ||||
| # 12. Commodity directive with zero precision | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user