emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Re: HTML export options are being ignored


From: Sébastien Vauban
Subject: Re: [O] Re: HTML export options are being ignored
Date: Fri, 04 Mar 2011 17:06:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Bastien,

Bastien wrote:
> Hi Jason,
>
> Jason Dunsmore <address@hidden> writes:
>
>> http://orgmode.org/w/org-mode.git/commitdiff/da8dc7bba7261
>>
>> 1) :preamble was renamed :html-preamble
>> 2) :postamble was renamed :html-postamble
>> 3) org-export-email-info is no longer checked before attempting export
>>    of email address.
>>
>> For the first two, the manual needs to be updated.  
>
> Done, thanks.
>
>> The third change seems like a bug.
>
> Yes.  I've changed the default of org-export-html-preamble (and
> postamble) to nil, so that the default behavior reproduce the old 
> one, and author/email/creator-info options will be honored.

You meant to `t' (not to `nil'), as shown by lines 346--388 of `org-html.el':

#+begin_src emacs-lisp
(defcustom org-export-html-preamble t
  "Non-nil means insert a preamble in HTML export.
The format of the preamble is set as `org-export-html-preamble-format'.
Setting :html-preamble in publishing projects will override this."
  :group 'org-export-html
  :type 'boolean)

(defcustom org-export-html-preamble-format
  '(("en" "<h1 class=\"title\">%t</h1>"))
  "The format for the HTML preamble.

%t stands for the title.

If you need to use a \"%\" character, you need to escape it
like that: \"%%\"."
  :group 'org-export-html
  :type 'string)

(defcustom org-export-html-postamble t
  "Non-nil means insert a postamble in HTML export.
The format of the postamble is set as `org-export-html-postamble-format'.
Setting :html-postamble in publishing projects will override this."
  :group 'org-export-html
  :type 'boolean)

(defcustom org-export-html-postamble-format
  '(("en" "<p class=\"author\">Author: %a (%e)</p>
<p class=\"date\">Date: %d</p>
<p class=\"creator\">Generated by %c</p>
<p class=\"xhtml-validation\">%v</p>
"))
  "The format for the HTML postamble.

%a stands for the author.
%e stands for the email(s).
%d stands for the date.
%c will be replaced by information about Org/Emacs.
%v will be replaced by `org-export-html-validation-link'.

If you need to use a \"%\" character, you need to escape it
like that: \"%%\"."
  :group 'org-export-html
  :type 'string)
#+end_src

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

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