From 1b02fe8c6e3693a321bfc4d2da52fa64a7d22590 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Tue, 15 Mar 2011 15:53:36 +0100 Subject: [PATCH] org-html.el: let `org-export-time-stamp-file' control the postamble date. * org-html.el (org-export-as-html): the default postamble now only export a date paragraph if `org-export-time-stamp-file' is non-nil. --- lisp/org-html.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org-html.el b/lisp/org-html.el index c60b1ffdc..152498ea4 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -541,7 +541,7 @@ When nil, also column one will use data tags." (defcustom org-export-html-with-timestamp nil "If non-nil, write timestamp into the exported HTML text. -If non-nil Write `org-export-html-html-helper-timestamp' into the +If non-nil, write `org-export-html-html-helper-timestamp' into the exported HTML text. Otherwise, the buffer will just be saved to a file." :group 'org-export-html @@ -1725,7 +1725,8 @@ lang=\"%s\" xml:lang=\"%s\"> ((eq html-post 'auto) ;; fall back on default postamble (insert "
\n") - (insert "

" (nth 2 lang-words) ": " date "

\n") + (when (plist-get opt-plist :time-stamp-file) + (insert "

" (nth 2 lang-words) ": " date "

\n")) (when (and (plist-get opt-plist :author-info) author) (insert "

" (nth 1 lang-words) ": " author "

\n")) (when (and (plist-get opt-plist :email-info) email) -- 2.11.4.GIT