Browse Source

ox-html: Do not generate empty validation link

* lisp/ox-html.el (org-html--build-pre/postamble): Do not generate
  empty validation link.

Reported-by: Nick Dokos <ndokos@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2019-05/msg00153.html>
Nicolas Goaziou 1 year ago
parent
commit
31873ed27d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lisp/ox-html.el

+ 3 - 2
lisp/ox-html.el

@@ -1998,8 +1998,9 @@ communication channel."
 			(plist-get info :html-metadata-timestamp-format))))
 		    (when (plist-get info :with-creator)
 		      (format "<p class=\"creator\">%s</p>\n" creator))
-		    (format "<p class=\"validation\">%s</p>\n"
-			    validation-link))))
+		    (when (org-string-nw-p validation-link)
+		      (format "<p class=\"validation\">%s</p>\n"
+			      validation-link)))))
 		(t
 		 (let ((formats (plist-get info (if (eq type 'preamble)
 						    :html-preamble-format