summaryrefslogtreecommitdiff
path: root/ledger-commodities.el
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2015-02-08 16:40:24 +0100
committerthdox <thdox@free.fr>2015-02-10 21:42:50 +0100
commit24376d516b25ea44fa3554f577ca5ddac67b914e (patch)
tree081894af5d296e2ba8566371f19442bec904f4c1 /ledger-commodities.el
parent71e61ff296d72e8e118fe02b0786da2dee6b82bc (diff)
[emacs] C-x h M-x untabify RET
C-x h M-x indent-region RET [ci skip]
Diffstat (limited to 'ledger-commodities.el')
-rw-r--r--ledger-commodities.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/ledger-commodities.el b/ledger-commodities.el
index 5ffebf3..ea6319b 100644
--- a/ledger-commodities.el
+++ b/ledger-commodities.el
@@ -91,8 +91,8 @@ Returns a list with (value commodity)."
(error "Can't add different commodities, %S to %S" c1 c2)))
(defun ledger-strip (str char)
- "Return STR with CHAR removed."
- (replace-regexp-in-string char "" str))
+ "Return STR with CHAR removed."
+ (replace-regexp-in-string char "" str))
(defun ledger-string-to-number (str &optional decimal-comma)
"improve builtin string-to-number by handling internationalization, and return nil if number can't be parsed"
@@ -105,7 +105,7 @@ Returns a list with (value commodity)."
(string-to-number nstr)))
(defun ledger-number-to-string (n &optional decimal-comma)
- "number-to-string that handles comma as decimal."
+ "number-to-string that handles comma as decimal."
(let ((str (number-to-string n)))
(when (or decimal-comma
(assoc "decimal-comma" ledger-environment-alist))
@@ -124,7 +124,7 @@ longer ones are after the value."
(concat commodity " " str))))
(defun ledger-read-commodity-string (prompt)
- "Read an amount from mini-buffer using PROMPT."
+ "Read an amount from mini-buffer using PROMPT."
(let ((str (read-from-minibuffer
(concat prompt " (" ledger-reconcile-default-commodity "): ")))
comm)