From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Obscure Bug with HTML Export if Directory Starts with an Underscore Date: Thu, 17 Dec 2009 08:30:16 +0000 Message-ID: <4B29EC18.2010808@manor-farm.org> References: <4B165326.2000902@manor-farm.org> <6724D66A-1B84-4020-B502-95B21F22E300@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NLBkl-0005aW-UG for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 03:30:32 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NLBki-0005Zl-Jc for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 03:30:29 -0500 Received: from [199.232.76.173] (port=59277 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NLBkh-0005ZT-SJ for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 03:30:28 -0500 Received: from li40-130.members.linode.com ([72.14.178.130]:56493) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NLBkh-0006I7-Fz for emacs-orgmode@gnu.org; Thu, 17 Dec 2009 03:30:27 -0500 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 1B942A405B for ; Thu, 17 Dec 2009 08:30:25 +0000 (GMT) Received: from li40-130.members.linode.com ([127.0.0.1]) by localhost (wilkesley.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DUtlm4yMDjGd for ; Thu, 17 Dec 2009 08:30:21 +0000 (GMT) Received: from [192.168.0.41] (unknown [217.146.125.41]) by li40-130.members.linode.com (Postfix) with ESMTPSA id D07A2A405A for ; Thu, 17 Dec 2009 08:30:19 +0000 (GMT) In-Reply-To: <6724D66A-1B84-4020-B502-95B21F22E300@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode List Carsten Dominik wrote: > Hi Ian, > > thank you for your report. > > This has nothing to do with the directory starting with an underscore. > What is happening here is that Org-mode uses the first line in the buffer, > "-----" in your case as the title of the document since no other title > is defined. Of course, the body-only export then discards the "title", > and you end up without your first line. > > You could fix this with a dummy #+TITLE: line, or by putting anything at > all > in a earlier line, even above #+STARTUP, or by setting the :title option > in your publishing setup. > > Another way would be > > ------------------------------------------------------------------------ > #+STARTUP: showall indent > #+STARTUP: hidestars > #+OPTIONS: H:2 num:nil tags:nil toc:1 timestamps:t > #+TITLE: ADSL Connection Problems. > #+BEGIN_HTML > --- > layout: post > title: {{{title}}} > tags: [gadgets, linux, test] > excerpt: Problems, problems! > --- > #+END_HTML > Main text of post goes here. > ------------------------------------------------------------------------ > > i.e using the {{{title}}} macro to insert the title into the right > place while having #+TITLE around to stop Org from grabbing > the first line. > > One could also question if it makes sense to grab the title from > the buffer if body-only is set, and I have now changed it so > that in this case it will *not* take the title from buffer text. > Thanks for the explanation and list of fixes. > Hope something here will help you - these are murky waters. > It's a good job that you have X-ray vision:) Ian.