summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2019-05-21 10:16:51 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2019-05-21 10:16:51 +0200
commit31873ed27d96e3159ccf5fab4e41a549232700b5 (patch)
tree07107b771e29100aec866edbe56f02dbecb6f903
parent2c9f259d65bff762f026bad98aeabafbf86e7285 (diff)
downloadorg-mode-31873ed27d96e3159ccf5fab4e41a549232700b5.tar.gz
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>
-rw-r--r--lisp/ox-html.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index edb45f4..9e4f07d 100644
--- a/lisp/ox-html.el
+++ b/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