summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2013-07-29 15:19:22 -0600
committerBastien Guerry <bzg@altern.org>2013-07-30 00:04:10 +0200
commitdb9f11a86065c10eaac9015adee37d60b05a5bb9 (patch)
tree33604c965158caf750ac0764d2e7d5bbf7e1d24f
parent99a8d97ffa000b391969806d655ac0f7aef193b2 (diff)
downloadorg-mode-db9f11a86065c10eaac9015adee37d60b05a5bb9.tar.gz
check html-link-home exists before triming
Ensure that the :html-link-home property exists before passing it to `org-trim' which assumes it's argument is a string.
-rw-r--r--lisp/ox-html.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 9fc53f1..2522f63 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2598,7 +2598,8 @@ images, set it to:
DESC is the description part of the link, or the empty string.
INFO is a plist holding contextual information. See
`org-export-data'."
- (let* ((home (org-trim (plist-get info :html-link-home)))
+ (let* ((home (when (plist-get info :html-link-home)
+ (org-trim (plist-get info :html-link-home))))
(use-abs-url (plist-get info :html-link-use-abs-url))
(link-org-files-as-html-maybe
(function