Revert "lisp/ox-latex: Omit empty date"

This reverts commit a753d0dd26.

Omitting \date in the LaTeX source makes LaTeX print today's date by
default, which is not consistent with :with-date export option.

See https://list.orgmode.org/m2v8rdguil.fsf@gmail.com/T/#t
This commit is contained in:
Ihor Radchenko 2022-08-01 06:47:37 +08:00
parent e22b4eb7aa
commit 0599ddfd41
No known key found for this signature in database
GPG key ID: 6470762A7DA11D8B

View file

@ -1980,8 +1980,7 @@ holding export options."
((or author email) (format "\\author{%s}\n" (or author email)))))
;; Date.
(let ((date (and (plist-get info :with-date) (org-export-get-date info))))
(when date
(format "\\date{%s}\n" (org-export-data date info))))
(format "\\date{%s}\n" (org-export-data date info)))
;; Title and subtitle.
(let* ((subtitle (plist-get info :subtitle))
(formatted-subtitle