emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [PATCH] ox-html: Fix handling of time-stamp-file
@ 2013-05-30 19:23 Kodi Arfer
  2013-05-30 19:45 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Kodi Arfer @ 2013-05-30 19:23 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #2: 0001-ox-html-Fix-handling-of-time-stamp-file.patch --]
[-- Type: text/x-patch, Size: 1059 bytes --]

From 10814da65829d6918d736188027723dde30b4a3c Mon Sep 17 00:00:00 2001
From: Kodi Arfer <git@arfer.net>
Date: Thu, 30 May 2013 15:19:57 -0400
Subject: [PATCH] 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
---
 lisp/ox-html.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 297cb55..949c3ba 100644
--- a/lisp/ox-html.el
+++ b/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)
-- 
1.8.1.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-30 19:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-30 19:23 [PATCH] ox-html: Fix handling of time-stamp-file Kodi Arfer
2013-05-30 19:45 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).