0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-09-29 20:07:46 +00:00

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

View file

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