babel: Simplify reading of header argument values

* ob.el (org-babel-parse-header-arguments): Simplify reading
	of header arg value
This commit is contained in:
Dan Davison 2010-10-14 13:02:46 +01:00
parent d5d96f612e
commit 82429ef406
1 changed files with 1 additions and 3 deletions

View File

@ -858,9 +858,7 @@ may be specified at the top of the current buffer."
"\\([^ \f\t\n\r\v]+\\)[ \f\t\n\r\v]+\\([^ \f\t\n\r\v]+.*\\)"
arg)
(cons (intern (concat ":" (match-string 1 arg)))
(let ((raw (org-babel-chomp (match-string 2 arg))))
(if (org-babel-number-p raw)
raw (org-babel-read raw))))
(org-babel-read (org-babel-chomp (match-string 2 arg))))
(cons (intern (concat ":" arg)) nil)))
(split-string (concat " " arg-string) "[ \f\t\n\r\v]+:" t)))))