lisp/org.el (org-indent-line): Fix another bug

* lisp/org.el (org-indent-line): When `org-adapt-indentation' is
'headline-data, prevent indentation for any first non-empty line
after the headline, not just the one right after the headline.
This commit is contained in:
Bastien 2021-05-03 08:46:37 +02:00
parent c7331f859d
commit c3917c3a0b
1 changed files with 1 additions and 1 deletions

View File

@ -19000,7 +19000,7 @@ Also align node properties according to `org-property-format'."
(unless (or (org-at-heading-p)
(and (eq org-adapt-indentation 'headline-data)
(save-excursion
(move-beginning-of-line 0)
(skip-chars-backward "\n")
(org-at-heading-p))))
(let* ((element (save-excursion (beginning-of-line) (org-element-at-point)))
(type (org-element-type element)))