summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Anders Skorpen <jonas@ifi.uio.no>2011-07-16 17:22:07 +0000
committerBastien Guerry <bzg@altern.org>2011-07-16 15:01:11 +0200
commit920cf53e686daea4f406aa237b48fe2ef4730426 (patch)
tree96489816baab3cfb6ebd6e691cb825f66edd8ec6
parent31effac797fe5b98b6bf735343338fb37668f8e8 (diff)
downloadorg-mode-920cf53e686daea4f406aa237b48fe2ef4730426.tar.gz
org-publish: Fix regexp for include files
* org-publish.el (org-publish-cache-file-needs-publishing): Regexp did not find includes with double quoted file names. TINYCHANGE
-rw-r--r--lisp/org-publish.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-publish.el b/lisp/org-publish.el
index b8e932d..9654a6d 100644
--- a/lisp/org-publish.el
+++ b/lisp/org-publish.el
@@ -1108,7 +1108,7 @@ so that the file including them will be republished as well."
(when (equal (file-name-extension filename) "org")
(find-file (expand-file-name filename))
(goto-char (point-min))
- (while (re-search-forward "^#\\+INCLUDE: \\(.+\\)[ ^\t]*$" nil t)
+ (while (re-search-forward "^#\\+INCLUDE:[ \t]+\"?\\([^ \t\"]*\\)\"?[ \t]*.*$" nil t)
(let* ((included-file (expand-file-name (match-string 1))))
(add-to-list 'included-files-ctime
(org-publish-cache-ctime-of-src included-file) t)))))