From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Capture - add newline after new entry Date: Mon, 9 Jan 2012 07:53:11 +0100 Message-ID: <416B71CC-BC31-46FE-82C4-B5A494F9B946@gmail.com> References: <87k452i428.fsf@earth.home> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk96c-0007pW-Gq for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 01:53:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rk96b-0007Ps-KD for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 01:53:18 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:33404) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rk96b-0007Pi-EK for emacs-orgmode@gnu.org; Mon, 09 Jan 2012 01:53:17 -0500 Received: by eabm6 with SMTP id m6so2250691eab.0 for ; Sun, 08 Jan 2012 22:53:16 -0800 (PST) In-Reply-To: <87k452i428.fsf@earth.home> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Adam Cc: emacs-orgmode@gnu.org On 8.1.2012, at 16:58, Adam wrote: > I have a notes file which has a newline preceeding every entry. >=20 > * A > test >=20 > * B > test2 >=20 > ** B2 > test3 >=20 > Now I want to add other entries to my tree via org-capture. This is = an > extract of my org-capture-templates >=20 > org-capture-templates > `(("t" "test" > entry (file+headline (concat org-directory "/notes.org") "B2") > "* %? %^t\n%i\n" > :kill-buffer)) >=20 > Unfortunately the final newline is honoured. It is in the capture > buffer, but after I press C-c C-c, it is magically removed. >=20 > Is this a bug? How can I capture new items while preserving my = outline structure? By reading the manual? Search for the :empty-lines property in capture template setup. - Carsten=