summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2014-03-25 10:05:27 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2014-03-25 10:05:27 +0100
commitbebb7597a79df0c1d93cafcc6cccfacddd40d6be (patch)
treebdb436c9f904ee1a897e5b272c59519a6ba4fc2e
parent6289868d284e9128ae91162d43359d7865827b57 (diff)
downloadorg-mode-bebb7597a79df0c1d93cafcc6cccfacddd40d6be.tar.gz
ox-publish: Fix small bug
* lisp/ox-publish.el (org-publish-cache-file-needs-publishing): Correctly extract filename. This bug was introduced in 6062f9ea72732067036d9d959f1627ece0a9056e. Thanks to steckerhalter for reporting it.
-rw-r--r--lisp/ox-publish.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el
index ad8eb32..bad8138 100644
--- a/lisp/ox-publish.el
+++ b/lisp/ox-publish.el
@@ -1169,7 +1169,9 @@ the file including them will be republished as well."
(let* ((element (org-element-at-point))
(included-file
(and (eq (org-element-type element) 'keyword)
- (org-string-nw-p (org-element-property :value element)))))
+ (string-match "^\\(\".+?\"\\|\\S-+\\)"
+ (org-element-property :value element))
+ (org-match-string-no-properties (match-string 1)))))
(when included-file
(add-to-list 'included-files-ctime
(org-publish-cache-ctime-of-src