Selaa lähdekoodia

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.
Bastien 4 vuotta sitten
vanhempi
commit
c3917c3a0b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      lisp/org.el

+ 1 - 1
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)))