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

* lisp/org-capture.el (org-capture-place-item): Fix blank lines in
  `item' target type.
This commit is contained in:
Nicolas Goaziou 2017-06-30 13:50:39 +02:00
parent 04403b446a
commit 4f90f44af3
1 changed files with 1 additions and 0 deletions

View File

@ -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")))