Insert an extra newline if EOBP is not on its own line when you add an act.

This commit is contained in:
Craig Earls 2015-08-22 18:47:05 -07:00
parent f310341bf5
commit 2fe6663fdb

View file

@ -89,8 +89,9 @@ MOMENT is an encoded date"
(when (and (eobp) last-xact-start)
(let ((end (cadr (ledger-navigate-find-xact-extents last-xact-start))))
(goto-char end)
(if (eobp)
(if (= (line-beginning-position) (line-end-position))
(insert "\n")
(insert "\n\n")
(forward-line))))))
(defun ledger-xact-iterate-transactions (callback)