Merge branch 'maint'

This commit is contained in:
Bastien 2021-05-06 13:51:52 +02:00
commit f95a5cbacb
1 changed files with 5 additions and 0 deletions

View File

@ -6999,6 +6999,11 @@ unconditionally."
(when (equal arg '(16)) (org-up-heading-safe)) (when (equal arg '(16)) (org-up-heading-safe))
(org-end-of-subtree))) (org-end-of-subtree)))
(unless (bolp) (insert "\n")) (unless (bolp) (insert "\n"))
(when (and blank? (save-excursion
(backward-char)
(org-before-first-heading-p)))
(insert "\n")
(backward-char))
(unless level (backward-char)) (unless level (backward-char))
(unless (and blank? (org-previous-line-empty-p)) (unless (and blank? (org-previous-line-empty-p))
(org-N-empty-lines-before-current (if blank? 1 0))) (org-N-empty-lines-before-current (if blank? 1 0)))