浏览代码

babel: Simplify reading of header argument values

	* ob.el (org-babel-parse-header-arguments): Simplify reading
	of header arg value
Dan Davison 14 年之前
父节点
当前提交
82429ef406
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      lisp/ob.el

+ 1 - 3
lisp/ob.el

@@ -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)))))