Просмотр исходного кода

* lisp/org.el (org-store-log-note): Do not indent empty lines in notes

See https://orgmode.org/list/m235eo9d8b.fsf@ntnu.no
Ihor Radchenko 3 лет назад
Родитель
Сommit
f095cfc3c0
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      lisp/org.el

+ 3 - 2
lisp/org.el

@@ -10397,8 +10397,9 @@ EXTRA is additional text that will be inserted into the notes buffer."
 	   (let ((ind (org-list-item-body-column (line-beginning-position))))
 	     (dolist (line lines)
 	       (insert-and-inherit "\n")
-	       (indent-line-to ind)
-	       (insert-and-inherit line)))
+               (unless (string-empty-p line)
+	         (indent-line-to ind)
+	         (insert-and-inherit line))))
 	   (message "Note stored")
 	   (org-back-to-heading t))))))
   ;; Don't add undo information when called from `org-agenda-todo'.