Browse Source

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.
Eric Schulte 11 years ago
parent
commit
db9f11a860
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/ox-html.el

+ 2 - 1
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