[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39
From: |
Nicolas Goaziou |
Subject: |
Re: [O] Bug: html-preamble doesn't work with a function [8.3.2 (8.3.2-39-gd537a3-elpa <at> /home/pillow/.emacs.d/elpa/org-20151123/)] |
Date: |
Sun, 20 Dec 2015 10:12:29 +0100 |
Hello,
Pillow Kuda Sai <address@hidden> writes:
> (defun my-html-preamble (options)
> (insert-file-contents "~/Blog/html/preamble.html"))
>
> but this does not include my preamble.html.
>
> As far as I could tell from the documentation :html-preamble should accept
> any function that returns a string but so far no luck.
(insert-file-contents "~/Blog/html/preamble.html")
doesn't return a string, but a list when evaluated (see
`insert-file-contents' docstring).
You may try
(org-file-contents "~/Blog/html/preamble.html")
Regards,
--
Nicolas Goaziou