Browse Source

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 years ago
parent
commit
6baa78b2da
1 changed files with 2 additions and 3 deletions
  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)
 		  arg)
 		 (cons (intern (match-string 1 arg))
 		 (cons (intern (match-string 1 arg))
 		       (org-babel-read (org-babel-chomp (match-string 2 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))
 	   (let ((balance 0) (partial nil) (lst nil) (last 0))
-	     (mapc (lambda (ch)
+	     (mapc (lambda (ch)  ; split on [] balanced instances of [ \t]:
 		     (setq balance (+ balance
 		     (setq balance (+ balance
 				      (cond ((equal 91 ch) 1)
 				      (cond ((equal 91 ch) 1)
 					    ((equal 93 ch) -1)
 					    ((equal 93 ch) -1)