org.el (org-insert-heading): Don't delete spaces in empty headlines
* org.el (org-insert-heading): Don't delete spaces in empty headlines.
This commit is contained in:
parent
50fc4c7630
commit
b472884e5e
|
@ -7447,6 +7447,8 @@ This is important for non-interactive uses of the command."
|
||||||
(org-end-of-subtree nil t)
|
(org-end-of-subtree nil t)
|
||||||
(and (looking-at "^\\*") (backward-char 1))
|
(and (looking-at "^\\*") (backward-char 1))
|
||||||
(while (and (not (bobp))
|
(while (and (not (bobp))
|
||||||
|
;; Don't delete spaces in empty headlines
|
||||||
|
(not (looking-back org-outline-regexp))
|
||||||
(member (char-before) '(?\ ?\t ?\n)))
|
(member (char-before) '(?\ ?\t ?\n)))
|
||||||
(backward-delete-char 1)))
|
(backward-delete-char 1)))
|
||||||
(let ((p (point)))
|
(let ((p (point)))
|
||||||
|
|
Loading…
Reference in New Issue