Browse Source

org-publish.el: allow :base-directory to omit the ending slash.

This was spotted by Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl>.
Bastien Guerry 14 years ago
parent
commit
11e7a573a5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-publish.el

+ 2 - 1
lisp/org-publish.el

@@ -472,7 +472,8 @@ matching filenames."
 	(unless (plist-get (cdr prj) :components)
 	  ;; [[info:org:Selecting%20files]] shows how this is supposed to work:
 	  (let* ((r (plist-get (cdr prj) :recursive))
-		 (b (expand-file-name (plist-get (cdr prj) :base-directory)))
+		 (b (expand-file-name (file-name-as-directory
+				       (plist-get (cdr prj) :base-directory))))
 		 (x (or (plist-get (cdr prj) :base-extension) "org"))
 		 (e (plist-get (cdr prj) :exclude))
 		 (i (plist-get (cdr prj) :include))