emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Re: HTML export options are being ignored
Date: Fri, 04 Mar 2011 17:06:45 +0100	[thread overview]
Message-ID: <8062ryg99m.fsf@somewhere.org> (raw)
In-Reply-To: 87sjv2ant4.fsf@gnu.org

Bastien,

Bastien wrote:
> Hi Jason,
>
> Jason Dunsmore <emacs-orgmode-dYgKDiuZisNBDgjK7y7TUQ@public.gmane.org> 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	other threads:[~2011-03-04 16:06 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-26  1:53 HTML export options are being ignored Cássio Koshikumo
2011-02-26  3:04 ` Jambunathan K
2011-03-02  4:18   ` Cássio Koshikumo
2011-02-26 14:26 ` Jason Dunsmore
2011-02-26 14:49   ` Jason Dunsmore
2011-03-04 15:49     ` Bastien
2011-03-04 16:06       ` Sébastien Vauban [this message]
2011-03-04 18:38         ` Bastien
2011-03-09 16:03       ` Jason Dunsmore
2011-03-09 16:17         ` Bastien
2011-02-26 16:38   ` Nick Dokos
2011-03-04 15:49 ` Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8062ryg99m.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).