Browse Source

ensure ob-get-src-block-info returns nil if not matches

* lisp/ob.el (org-babel-get-src-block-info): small but crucial fix,
  this should return nil if not match found
Eric Schulte 14 years ago
parent
commit
05054d5227
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -182,7 +182,7 @@ Returns a list
 	      (append (mapcar (lambda (el) (cons :var (org-babel-ref-parse (cdr el))))
 			      (org-babel-get-header params :var))
 		      (org-babel-get-header params :var 'other)))))
-    (append info (list name indent))))
+    (when info (append info (list name indent)))))
 
 (defun org-babel-confirm-evaluate (info)
   "Confirm evaluation of the code block INFO.