1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-02 08:22:16 +00:00

org.el (org-sort-entries): Fix the number of blank lines to keep for the last entry to sort

* org.el (org-sort-entries): Fix the number of blank lines to
keep for the last entry to sort.

Thanks to Kyle Meyer for raising this issue.
This commit is contained in:
Bastien Guerry 2014-04-17 12:51:49 +02:00
parent 1781a63304
commit a937366e8a

View File

@ -8639,7 +8639,8 @@ links."
(setq start (point)
end (progn (org-end-of-subtree t t)
(or (bolp) (insert "\n"))
(org-back-over-empty-lines)
(when (>= (org-back-over-empty-lines) 1)
(forward-line 1))
(point))
what "children")
(goto-char start)