Browse Source

Fix interpretation of the :include property as a list of file names

Carsten Dominik 14 years ago
parent
commit
3529be82ef
1 changed files with 6 additions and 1 deletions
  1. 6 1
      lisp/org-publish.el

+ 6 - 1
lisp/org-publish.el

@@ -471,7 +471,12 @@ matching filenames."
 		 (i (plist-get (cdr prj) :include))
 		 (xm (concat "^" b (if r ".+" "[^/]+") "\\.\\(" x "\\)$")))
 	    (when (or
-		   (and i (string-match i filename))
+		   (and 
+		    i 
+		    (member filename 
+			    (mapcar 
+			     (lambda (file) (expand-file-name file b))
+			     i)))
 		   (and
 		    (not (and e (string-match e filename)))
 		    (string-match xm filename)))