diff options
Diffstat (limited to 'lisp/ledger-post.el')
-rw-r--r-- | lisp/ledger-post.el | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ledger-post.el b/lisp/ledger-post.el index 2709a5e3..ea718f9d 100644 --- a/lisp/ledger-post.el +++ b/lisp/ledger-post.el @@ -163,7 +163,16 @@ region align the posting on the current line." (if mark-first (point) (mark)))) acct-start-column acct-end-column acct-adjust amt-width (lines-left 1)) - ;; Condition point and mark to the beginning and end of lines + ;; Condition point and mark to the beginning and end of lines + (goto-char end-region) + (setq end-region (line-end-position)) + (goto-char begin-region) + (goto-char + (setq begin-region + (line-beginning-position))) + + (untabify begin-region end-region) + (goto-char end-region) (setq end-region (line-end-position)) (goto-char begin-region) |