Ensure that commodities using decimal period, have comma separators removed for string-to-number.

This commit is contained in:
Craig Earls 2013-02-26 10:42:30 -07:00
parent 09f5e41d96
commit 821847b018

View file

@ -94,7 +94,9 @@ which must be translated both directions."
(while (string-match "\\." val)
(setq val (replace-match "," nil nil val)))) ;; gets rid of periods
(t
(error "ledger-commodity-string-number-decimalize: direction not properly specified %S" direction))))
(error "ledger-commodity-string-number-decimalize: direction not properly specified %S" direction)))
(while (string-match "," val)
(setq val (replace-match "" nil nil val))))
val))