summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-10-06 17:44:04 (GMT)
committer Nicolas Goaziou <n.goaziou@gmail.com>2012-10-06 17:44:04 (GMT)
commit36306bae4e48b711edb2e05da87a50ebc5c41a1d (patch)
treeb269e58feb435e7f84c3e0ceffa667ea63fdf404
parentf461a105321a31d1d6369aae42fe534f12c602d1 (diff)
downloadorg-mode-36306bae4e48b711edb2e05da87a50ebc5c41a1d.zip
org-mode-36306bae4e48b711edb2e05da87a50ebc5c41a1d.tar.gz
org-e-publish: Fix type mismatch error
* contrib/lisp/org-e-publish.el (org-e-publish-find-title): Store title as a string, not as a secondary string.
-rw-r--r--contrib/lisp/org-e-publish.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/lisp/org-e-publish.el b/contrib/lisp/org-e-publish.el
index 9fd18ca..517c7ad 100644
--- a/contrib/lisp/org-e-publish.el
+++ b/contrib/lisp/org-e-publish.el
@@ -864,7 +864,8 @@ Default for SITEMAP-FILENAME is 'sitemap.org'."
(with-current-buffer buffer
(org-mode)
(setq title
- (or (plist-get (org-export-get-environment) :title)
+ (or (org-element-interpret-data
+ (plist-get (org-export-get-environment) :title))
(file-name-nondirectory (file-name-sans-extension file)))))
(unless visiting (kill-buffer buffer))
(org-e-publish-cache-set-file-property file :title title)