Browse Source

ob-ref: Allow passing empty strings into code blocks.

  Thanks to Leo Alekseyev for pointing this out.

* lisp/ob-ref.el (org-babel-ref-parse): Allow passing empty strings
  into code blocks.
Eric Schulte 14 years ago
parent
commit
f7a752f6d6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ob-ref.el

+ 1 - 1
lisp/ob-ref.el

@@ -76,7 +76,7 @@ the variable."
       (cons (intern var)
 	    (let ((out (org-babel-read ref)))
 	      (if (equal out ref)
-		  (if (string-match "^\".+\"$" ref)
+		  (if (string-match "^\".*\"$" ref)
 		      (read ref)
 		    (org-babel-ref-resolve ref))
 		out))))))