mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 22:07:49 +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:
parent
ca0e61d784
commit
f7a752f6d6
|
@ -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))))))
|
||||||
|
|
Loading…
Reference in a new issue