diff options
author | Bastien <bzg@gnu.org> | 2021-05-03 10:04:57 +0200 |
---|---|---|
committer | Bastien <bzg@gnu.org> | 2021-05-03 10:04:57 +0200 |
commit | ba9e5310164aed27e53d9ef032c902236495e998 (patch) | |
tree | ae77b0b76bc7ce145703ac9c651aac98795aab39 | |
parent | 445be139721508b20d35301ff351886589449a74 (diff) | |
download | org-mode-ba9e5310164aed27e53d9ef032c902236495e998.tar.gz |
lisp/org.el: Fix another indentation case
* lisp/org.el (org-indent-line): With `org-adapt-indentation' set
to 'headline-data, don't indent after a headline, a planning line
or a drawer.
Reported-by: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Link: https://orgmode.org/list/878s4wu9oe.fsf@gmail.com/T/#m658a98441dcce099a569ca5b228778aad5d102f3
-rw-r--r-- | lisp/org.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 97bc06e..c0b5ee5 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19003,7 +19003,9 @@ Also align node properties according to `org-property-format'." (save-excursion (beginning-of-line 1) (skip-chars-backward "\n") - (org-at-heading-p)))) + (or (org-at-heading-p) + (org-at-drawer-p) + (org-at-planning-p))))) (let* ((element (save-excursion (beginning-of-line) (org-element-at-point))) (type (org-element-type element))) (cond ((and (memq type '(plain-list item)) |