diff options
author | Bastien Guerry <bzg@altern.org> | 2014-04-17 12:51:49 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2014-04-17 12:51:49 +0200 |
commit | a937366e8ae306ed5ff7bed31fd1d0d54bc8d5de (patch) | |
tree | ac1622353611c89ba18ac9027a28dbc1dac6129c | |
parent | 1781a63304a2b716bd4c57e62506dbb6cd92535d (diff) | |
download | org-mode-a937366e8ae306ed5ff7bed31fd1d0d54bc8d5de.tar.gz |
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.
-rw-r--r-- | lisp/org.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 617829d..1f9b194 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -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) |