浏览代码

ob: no longer adding extra ":" to singleton first header args

* lisp/ob.el (org-babel-parse-header-arguments): Removed addition of
  ":" to singleton first header arguments as it was leading to errors.
Eric Schulte 14 年之前
父节点
当前提交
6baa78b2da
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      lisp/ob.el

+ 2 - 3
lisp/ob.el

@@ -906,10 +906,9 @@ may be specified at the top of the current buffer."
 		  arg)
 		 (cons (intern (match-string 1 arg))
 		       (org-babel-read (org-babel-chomp (match-string 2 arg))))
-	       (cons (intern (concat ":" arg)) nil)))
-	   ;; walk the list splitting on balanced instances of [ \t]:
+	       (cons (intern arg) nil)))
 	   (let ((balance 0) (partial nil) (lst nil) (last 0))
-	     (mapc (lambda (ch)
+	     (mapc (lambda (ch)  ; split on [] balanced instances of [ \t]:
 		     (setq balance (+ balance
 				      (cond ((equal 91 ch) 1)
 					    ((equal 93 ch) -1)