ox-publish: Fix small bug

* lisp/ox-publish.el (org-publish-cache-file-needs-publishing):
  Correctly extract filename.

This bug was introduced in 6062f9ea72.
Thanks to steckerhalter for reporting it.
This commit is contained in:
Nicolas Goaziou 2014-03-25 10:05:27 +01:00
parent 6289868d28
commit bebb7597a7
1 changed files with 3 additions and 1 deletions

View File

@ -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