org.el (org-insert-heading): Don't remove whitespaces following an empty headline
* org.el (org-insert-heading): Don't remove whitespaces following an empty headline. Thanks to Brady Trainor for reporting this.
This commit is contained in:
parent
d9dd1e6bd5
commit
afffe03dcf
|
@ -7619,7 +7619,8 @@ This is important for non-interactive uses of the command."
|
||||||
(when respect-content
|
(when respect-content
|
||||||
(org-end-of-subtree nil t)
|
(org-end-of-subtree nil t)
|
||||||
(skip-chars-backward " \r\n")
|
(skip-chars-backward " \r\n")
|
||||||
(and (looking-at "[ \t]+") (replace-match ""))
|
(and (not (looking-back "^\*+"))
|
||||||
|
(looking-at "[ \t]+") (replace-match ""))
|
||||||
(unless (eobp) (forward-char 1))
|
(unless (eobp) (forward-char 1))
|
||||||
(when (looking-at "^\\*")
|
(when (looking-at "^\\*")
|
||||||
(unless (bobp) (backward-char 1))
|
(unless (bobp) (backward-char 1))
|
||||||
|
|
Loading…
Reference in New Issue