From fecd0a1af6eba4099e31295fc3e00b003f538d45 Mon Sep 17 00:00:00 2001 Message-Id: From: Ihor Radchenko Date: Wed, 2 Nov 2022 12:21:01 +0800 Subject: [PATCH 1/3] ox-html: Do not allow `org-html-preamble' to be 'auto * lisp/ox-html.el (org-html--build-pre/postamble): Avoid building date/author/email info line when `org-html-preamble' is set to 'auto. This is only meaningful in `org-html-postamble'. --- lisp/ox-html.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index cad06aebf..36fcd536c 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1993,7 +1993,7 @@ (defun org-html--build-pre/postamble (type info) (if (functionp section) (funcall section info) (cond ((stringp section) (format-spec section spec)) - ((eq section 'auto) + ((and (eq section 'auto) (eq type 'postamble)) (let ((date (cdr (assq ?d spec))) (author (cdr (assq ?a spec))) (email (cdr (assq ?e spec))) -- 2.35.1