Skip to content

Commit

Permalink
* lisp/org.el (org-store-log-note): Do not indent empty lines in notes
Browse files Browse the repository at this point in the history
  • Loading branch information
yantar92 committed Jul 31, 2022
1 parent 2ea0830 commit f095cfc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lisp/org.el
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
Expand Down

0 comments on commit f095cfc

Please sign in to comment.