From 971bcf22f4282ef9813a9fe9bb4966e03d50c48c Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Sat, 13 Apr 2013 21:55:06 -0700 Subject: Bug 951, handle thousand separators. Rewrote handling for decimal comma to be much simpler. Why can't I see the simple way first? --- lisp/ldg-post.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/ldg-post.el') diff --git a/lisp/ldg-post.el b/lisp/ldg-post.el index 37722fbc..7e4a631c 100644 --- a/lisp/ldg-post.el +++ b/lisp/ldg-post.el @@ -217,7 +217,7 @@ BEG, END, and LEN control how far it can align." (let ((end-of-amount (re-search-forward "[-.,0-9]+" (line-end-position) t))) ;; determine if there is an amount to edit (if end-of-amount - (let ((val (ledger-commodity-string-number-decimalize (match-string 0) :from-user))) + (let ((val (ledger-string-to-number (match-string 0)))) (goto-char (match-beginning 0)) (delete-region (match-beginning 0) (match-end 0)) (calc) -- cgit v1.2.3