summaryrefslogtreecommitdiff
path: root/lisp/ledger-mode.el
diff options
context:
space:
mode:
authorCraig Earls <enderw88@gmail.com>2014-06-25 20:50:07 -0700
committerCraig Earls <enderw88@gmail.com>2014-06-25 20:50:07 -0700
commit3a2eb94beff65f22463c119e4db55a2962ac02e0 (patch)
tree53c21914b68ab5ba7256ce6e4fa83829c0316cd6 /lisp/ledger-mode.el
parent10bdcbb876227047763d5656bf9a93af624aaf31 (diff)
downloadfork-ledger-3a2eb94beff65f22463c119e4db55a2962ac02e0.tar.gz
fork-ledger-3a2eb94beff65f22463c119e4db55a2962ac02e0.tar.bz2
fork-ledger-3a2eb94beff65f22463c119e4db55a2962ac02e0.zip
Fix bug 1052 ledger-mode mangles transactions with tabs.
Diffstat (limited to 'lisp/ledger-mode.el')
-rw-r--r--lisp/ledger-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/ledger-mode.el b/lisp/ledger-mode.el
index ec1bc505..f89df45c 100644
--- a/lisp/ledger-mode.el
+++ b/lisp/ledger-mode.el
@@ -222,6 +222,7 @@ With a prefix argument, remove the effective date. "
(defun ledger-mode-clean-buffer ()
"indent, remove multiple linfe feeds and sort the buffer"
(interactive)
+ (untabify (point-min) (point-max))
(ledger-sort-buffer)
(ledger-post-align-postings (point-min) (point-max))
(ledger-mode-remove-extra-lines))