summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien <bzg@gnu.org>2021-05-03 08:46:37 +0200
committerBastien <bzg@gnu.org>2021-05-03 08:46:37 +0200
commitc3917c3a0b8f33256ef038c3c64a93f259108722 (patch)
tree7096d3f97a3ae07281309e1954104aa0304aff1a
parentc7331f859d1cc53d5c5f2c6ec58691af15f60b80 (diff)
downloadorg-mode-c3917c3a0b8f33256ef038c3c64a93f259108722.tar.gz
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.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
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)))