Parcourir la source

ox-html: Fix handling of time-stamp-file

* lisp/ox-html.el (org-html--build-meta-info): Insert no timestamp
  when :time-stamp-file is nil.

TINYCHANGE
Kodi Arfer il y a 11 ans
Parent
commit
f3ba879079
1 fichiers modifiés avec 3 ajouts et 4 suppressions
  1. 3 4
      lisp/ox-html.el

+ 3 - 4
lisp/ox-html.el

@@ -1420,10 +1420,9 @@ INFO is a plist used as a communication channel."
 	(keywords (plist-get info :keywords)))
     (concat
      (format "<title>%s</title>\n" title)
-     (format
-      (when :time-stamp-file
-	(format-time-string
-	 (concat "<!-- " org-html-metadata-timestamp-format " -->\n"))))
+     (when (plist-get info :time-stamp-file)
+       (format-time-string
+	 (concat "<!-- " org-html-metadata-timestamp-format " -->\n")))
      (format
       "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=%s\"/>\n"
       (or (and org-html-coding-system