summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2014-03-29 14:30:07 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2014-03-29 14:41:27 +0100
commit3636783ca440c1f4aaa5e2db7bc431f0223e1592 (patch)
tree37808cdb4662f96555729b3d2467721e3988c726
parente330027ac1d5378defde46e274057a92b247e5d3 (diff)
downloadorg-mode-3636783ca440c1f4aaa5e2db7bc431f0223e1592.tar.gz
ox-publish: Fix (invalid-read-syntax "#") error
* lisp/ox-publish.el (org-publish-find-title): Fix (invalid-read-syntax "#"). Since 8e1386cead0e4296f7bb063d07d64dd95ec0b231, `org-element-interpret-data' no longer trims text properties attached to strings. We need to remove them before writing the title into the cache, as text properties are not readable.
-rw-r--r--lisp/ox-publish.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el
index 55cb646..b38fca9 100644
--- a/lisp/ox-publish.el
+++ b/lisp/ox-publish.el
@@ -808,7 +808,8 @@ Default for SITEMAP-FILENAME is 'sitemap.org'."
(org-mode)
(let ((title
(let ((property (plist-get (org-export-get-environment) :title)))
- (if property (org-element-interpret-data property)
+ (if property
+ (org-no-properties (org-element-interpret-data property))
(file-name-nondirectory (file-name-sans-extension file))))))
(unless visiting (kill-buffer buffer))
(org-publish-cache-set-file-property file :title title)