diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-05-21 10:16:51 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2019-05-21 10:16:51 +0200 |
commit | 31873ed27d96e3159ccf5fab4e41a549232700b5 (patch) | |
tree | 07107b771e29100aec866edbe56f02dbecb6f903 | |
parent | 2c9f259d65bff762f026bad98aeabafbf86e7285 (diff) | |
download | org-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.el | 5 |
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 |