babel: Fix bug in `org-babel-get-src-block-info'

* ob.el (org-babel-get-src-block-info): Form info list
	correctly when parenthesised arguments are missing
This commit is contained in:
Dan Davison 2010-09-26 12:09:22 +01:00
parent 60dbabb263
commit 8b327f2a77
1 changed files with 2 additions and 1 deletions

View File

@ -168,7 +168,8 @@ added to the header-arguments-alist."
(append info (list
(mapcar
(lambda (ref) (cons :var ref))
(org-babel-ref-split-args args))))))
(org-babel-ref-split-args args)))))
(setq info (append info (list nil))))
(unless header-vars-only
(setf (nth 2 info)
(org-babel-merge-params (nth 5 info) (nth 2 info)))))