From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Obscure Bug with HTML Export if Directory Starts with an Underscore Date: Wed, 02 Dec 2009 11:44:38 +0000 Message-ID: <4B165326.2000902@manor-farm.org> Reply-To: lists@manor-farm.org 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 1NFndY-0000yR-55 for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 06:44:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFndV-0000wu-Eq for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 06:44:47 -0500 Received: from [199.232.76.173] (port=57716 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFndV-0000wd-3F for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 06:44:45 -0500 Received: from li40-130.members.linode.com ([72.14.178.130]:46009) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFndU-0002dI-IB for emacs-orgmode@gnu.org; Wed, 02 Dec 2009 06:44:44 -0500 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 6A818D08C for ; Wed, 2 Dec 2009 11:44:42 +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 Sta-Oi4ZC1ud for ; Wed, 2 Dec 2009 11:44:41 +0000 (GMT) Received: from firewall.banter.local (unknown [217.146.125.41]) by li40-130.members.linode.com (Postfix) with ESMTP id AF2A4D08B for ; Wed, 2 Dec 2009 11:44:40 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by firewall.banter.local (Postfix) with ESMTP id 1BD2CC5CC for ; Wed, 2 Dec 2009 11:44:39 +0000 (GMT) Received: from firewall.banter.local ([127.0.0.1]) by localhost (firewall.banter.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7UOQaYdYE5La for ; Wed, 2 Dec 2009 11:44:39 +0000 (GMT) Received: from [192.168.0.55] (unknown [192.168.0.55]) by firewall.banter.local (Postfix) with ESMTPSA id F16AAC030 for ; Wed, 2 Dec 2009 11:44:38 +0000 (GMT) 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 As part of my attempt to get org to play nicely with Jekyll, I think I have found a problem with html export. My org directory structure looks like: org| ------|mountaineering ------|cycling ------|_posts Basically org files for blog posts go into posts. My org files look like: #+STARTUP: showall indent #+STARTUP: hidestars #+OPTIONS: H:2 num:nil tags:nil toc:1 timestamps:t #+BEGIN_HTML --- layout: post title: ADSL Connection Problems. tags: [gadgets, linux, test] excerpt: Problems, problems! --- #+END_HTML Main text of post goes here. I am just exporting the body text (see below for my config). Carsten recently updated org to remove leading line feeds at the top of the exported file. So my exported file looks like: --- layout: post title: ADSL Connection Problems. tags: [gadgets, linux, test] excerpt: Problems, problems! --- However, if the directory the file is exported from starts with an underscore e.g. _posts, The exporter removes the first ---. I have a workaround - put two lines with --- at the top of the file. I am using the current git checkout of org. My project a list looks like: (setq org-publish-project-alist '( ("org-ianbarton" ;; Path to your org files. :base-directory "~/devel/ianbarton/org/" :base-extension "org" ;; Path to your Jekyll project. :publishing-directory "~/devel/ianbarton/jekyll/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 :html-extension "html" :body-only t ;; Only export section between ) ("org-static-ian" :base-directory "~/devel/ianbarton/org/" :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php" :publishing-directory "~/devel/ianbarton/" :recursive t :publishing-function org-publish-attachment) ("ian" :components ("org-ianbarton" "org-static-ian")) )) Ian.