From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: Title gets a 'nil' appended on org-export-subtree to html Date: Wed, 08 Feb 2012 19:31:29 +0100 Message-ID: <87mx8txjlq.wl%dmaus@ictsoc.de> References: Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvCIr-0007vw-Ih for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 13:31:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvCIn-0002ey-Ih for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 13:31:37 -0500 Received: from app1a.xlhost.de ([213.202.242.161]:56432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvCIn-0002eo-Db for emacs-orgmode@gnu.org; Wed, 08 Feb 2012 13:31:33 -0500 In-Reply-To: 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: John Hendy Cc: emacs-orgmode Hi John, At Tue, 7 Feb 2012 12:46:30 -0600, John Hendy wrote: > > I got some weird behavior on a file, so I recreated a smaller example > and can reproduce it. Here it is: > > ---------- > > #+options: <:t num:t tasks:nil tags:t > > * test > ** sub 1 > ** sub 2 > ---------- > > If I go to the first headline, 'test', and do =C-c C-e 1 h= to export > the subtree as html, my filename/default title ends up as 'test nil.' > > If I export with =C-c C-e h=, I just end up with 'test.' > > If I remove =tags:t= from the options line, the 'nil' also goes away. > > Any thoughts on why this is happening? I can confirm the bug and it should be fixed in master. What happend was that Org grabbed the document title from the headline (good) and tags:t told Org to include the tags (Okay), but then Org forgot to check if there are actually tags in the headline when creating the document title with a `format' w/ a placeholder for the tags. Best, -- David