From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Html Exporter Suppressing Blank Lines at Start Date: Sat, 21 Nov 2009 18:42:54 +0000 Message-ID: <4B0834AE.4070804@manor-farm.org> References: <4B081175.9050904@manor-farm.org> <0A60C9E6-922F-44A7-9FD0-6D71BA828E23@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 1NBuvV-00039l-88 for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 13:43:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBuvT-00039Z-Pq for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 13:43:16 -0500 Received: from [199.232.76.173] (port=59451 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBuvT-00039W-Kv for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 13:43:15 -0500 Received: from li40-130.members.linode.com ([72.14.178.130]:59969) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBuvT-0006rQ-1A for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 13:43:15 -0500 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 21D34CFF0 for ; Sat, 21 Nov 2009 18:43:14 +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 uBWnLQNyNlR0 for ; Sat, 21 Nov 2009 18:42:57 +0000 (GMT) Received: from [192.168.0.41] (unknown [217.146.125.41]) by li40-130.members.linode.com (Postfix) with ESMTP id 372B2CFEE for ; Sat, 21 Nov 2009 18:42:56 +0000 (GMT) In-Reply-To: <0A60C9E6-922F-44A7-9FD0-6D71BA828E23@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 Cc: org-mode mailing list > Hmmm, when I do this export, I get a full html file, with header and > all, and he first "---" as the

title of the document. > > Could you please tell in more detail what you mean? > > Thanks. > > - Carsten > > On Nov 21, 2009, at 5:12 PM, Ian Barton wrote: > >> I am playing with Jekyll as a possible blogging solution for org. So >> far it looks good, but there is one small problem. You can use yaml in >> your html, but it has to be the very first thing in the file: >> >> In my org file I have: >> >> #+STARTUP: showall indent >> #+STARTUP: hidestars >> #+BEGIN_HTML >> --- >> layout: default >> title: Benighted on the Ben. >> --- >> #+END_HTML >> >> It was early January when six of us travelled up to >> >> >> When I export to html I end up with two blank lines at the top of the >> file above the first ---. Is there a way to get the html exporter not >> to insert those two blank lines? >> Sorry, I should have provided more detail. Here is the relevant part of my org-publish-project-alist. ("org-ianbarton" :base-directory "~/devel/ianbarton/org/" :base-extension "org" :publishing-directory "~/devel/ianbarton/jekyll/" :recursive t :publishing-function org-publish-org-to-html :headline-levels 4 ; Just the default for this project. :html-extension "html" :body-only t ) ("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.