Browse Source

org-capture: Fix item capture

* lisp/org-capture.el (org-capture-place-table-line): Remove
  unnecessary call to `org-table-align', which could insert a spurious
  newline character.

Reported-by: Thomas Holst <Thomas_Holst@gmx.de>
<http://lists.gnu.org/r/emacs-orgmode/2019-01/msg00233.html>
Nicolas Goaziou 10 months ago
parent
commit
b70cb5b7d0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/org-capture.el

+ 1 - 2
lisp/org-capture.el

@@ -1333,8 +1333,7 @@ may have been stored before."
 	(org-capture-narrow beg (1- end))
 	(when (or (search-backward "%?" beg t)
 		  (search-forward "%?" end t))
-	  (replace-match "")))
-      (org-table-align))))
+	  (replace-match ""))))))
 
 (defun org-capture-place-plain-text ()
   "Place the template plainly.