1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-23 07:18:53 +00:00

org-babel: no longer over evaluating header arguments

This commit is contained in:
Eric Schulte 2010-04-10 15:43:19 -06:00
parent 3386a702f8
commit 0e8c9f7a49

View File

@ -576,7 +576,7 @@ may be specified in the properties of the current outline entry."
(if (string-match "\\([^ \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 (eval (org-babel-read raw)))))
(if (org-babel-number-p raw) raw (org-babel-read raw))))
(cons (intern (concat ":" arg)) nil)))
(split-string (concat " " arg-string) "[ \f\t\n\r\v]+:" t)))))