[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Publishing using the new exporter

From: Nicolas Goaziou
Subject: Re: [O] Publishing using the new exporter
Date: Tue, 25 Sep 2012 12:58:12 +0200


Robert Klein <address@hidden> writes:

> If i set :html-preable to either s2-preamble or 's2-preamble nothing 
> gets inserted.
> I studied the code in org-e-html (excerpt below), but i don't see what I 
> did wrong.
> #+begin_src elisp :file contrib/lisp/org-e-html.el :firstline 1329
> (defun org-e-html-preamble (info)
>    (when (plist-get info :html-preamble)
>      (let* ((title (org-export-data (plist-get info :title) info))
>          (date (org-e-html-format-date info))
>          (author (org-export-data (plist-get info :author) info))
>          (email (plist-get info :email))
>          (html-pre-real-contents
>           (cond
>            ((functionp (plist-get info :html-preamble))
>             (with-temp-buffer
>               (funcall (plist-get info :html-preamble))
>               (buffer-string)))
> #+end_src

That's because the code expects the function to write to a buffer
instead of simply returning a string, which is wrong IMO.

The condition should simply be:

  ((functionp (plist-get info :html-preamble))
   (funcall (plist-get info :html-preamble)))

I will change this in a few hours unless someone beats me to it.


Nicolas Goaziou

reply via email to

[Prev in Thread] Current Thread [Next in Thread]