Browse Source

org-capture: Fix blank lines in `item' target type

* lisp/org-capture.el (org-capture-place-item): Fix blank lines in
  `item' target type.
Nicolas Goaziou 2 years ago
parent
commit
4f90f44af3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-capture.el

+ 1 - 0
lisp/org-capture.el

@@ -1126,6 +1126,7 @@ may have been stored before."
 			(mapconcat 'identity (split-string txt "\n")
 				   "\n  "))))
     ;; Prepare surrounding empty lines.
+    (unless (bolp) (insert "\n"))
     (org-capture-empty-lines-before)
     (setq beg (point))
     (unless (eolp) (save-excursion (insert "\n")))