Browse Source

ox-publish: Fix code typo (take 3)

* lisp/ox-publish.el (org-publish-cache-file-needs-publishing): Fix
  code typo.
Nicolas Goaziou 11 years ago
parent
commit
cd9685cd10
1 changed files with 5 additions and 3 deletions
  1. 5 3
      lisp/ox-publish.el

+ 5 - 3
lisp/ox-publish.el

@@ -1169,9 +1169,11 @@ the file including them will be republished as well."
 	  (let* ((element (org-element-at-point))
 		 (included-file
 		  (and (eq (org-element-type element) 'keyword)
-		       (string-match "^\\(\".+?\"\\|\\S-+\\)"
-				     (org-element-property :value element))
-		       (org-remove-double-quotes (match-string 1)))))
+		       (let ((value (org-element-property :value element)))
+			 (and value
+			      (string-match "^\\(\".+?\"\\|\\S-+\\)" value)
+			      (org-remove-double-quotes
+			       (match-string 1 value)))))))
 	    (when included-file
 	      (add-to-list 'included-files-ctime
 			   (org-publish-cache-ctime-of-src