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.
This commit is contained in:
Eric Schulte 2011-01-11 20:40:13 -07:00
parent ca0e61d784
commit f7a752f6d6
1 changed files with 1 additions and 1 deletions

View File

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