[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/org c3917c3 1/2: lisp/org.el (org-indent-line):
From: |
ELPA Syncer |
Subject: |
[elpa] externals-release/org c3917c3 1/2: lisp/org.el (org-indent-line): Fix another bug |
Date: |
Mon, 3 May 2021 02:57:18 -0400 (EDT) |
branch: externals-release/org
commit c3917c3a0b8f33256ef038c3c64a93f259108722
Author: Bastien <bzg@gnu.org>
Commit: Bastien <bzg@gnu.org>
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.
---
lisp/org.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org.el b/lisp/org.el
index fbe9e8a..bd0c3ce 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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)))