瀏覽代碼

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 12 年之前
父節點
當前提交
d574bf522d
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      lisp/ox-html.el

+ 3 - 4
lisp/ox-html.el

@@ -1506,10 +1506,9 @@ INFO is a plist used as a communication channel."
 		     "iso-8859-1")))
     (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
       (if (org-html-html5-p info)
 	  (org-html-close-tag "meta" " charset=\"%s\"" info)