From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Html Exporter Suppressing Blank Lines at Start Date: Sat, 21 Nov 2009 20:53:23 +0100 Message-ID: <273A5DCB-7AFD-42C0-9E14-F2CCBD9F5815@gmail.com> References: <4B081175.9050904@manor-farm.org> <0A60C9E6-922F-44A7-9FD0-6D71BA828E23@gmail.com> <4B0834AE.4070804@manor-farm.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBw1T-0002ux-GV for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 14:53:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBw1P-0002qo-J7 for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 14:53:31 -0500 Received: from [199.232.76.173] (port=43374 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBw1P-0002qe-Dd for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 14:53:27 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:45140) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBw1O-0000jy-Ue for emacs-orgmode@gnu.org; Sat, 21 Nov 2009 14:53:27 -0500 Received: by ewy24 with SMTP id 24so700192ewy.26 for ; Sat, 21 Nov 2009 11:53:26 -0800 (PST) In-Reply-To: <4B0834AE.4070804@manor-farm.org> 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: Ian Barton Cc: org-mode mailing list Hi Ian, if you upgrade, these empty lines should be gone. Also, there are several hooks that run once the export is done: org-export-html-final-hook (always) org-publish-after-export-hook (when going through org-publish) These hooks can also be used to make adjustments like this one. HTH - Carsten On Nov 21, 2009, at 7:42 PM, Ian Barton wrote: >> 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. > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten