diff options
author | Eric Schulte <schulte.eric@gmail.com> | 2011-01-11 20:40:13 -0700 |
---|---|---|
committer | Eric Schulte <schulte.eric@gmail.com> | 2011-01-11 20:40:13 -0700 |
commit | f7a752f6d60e1c747dc9330c5f12631bf77f6aa3 (patch) | |
tree | 62b1299c96bf6b8cb3812df66964983ce04417f3 | |
parent | ca0e61d7848e7ec1f49f2076e4a120c3e7722147 (diff) | |
download | org-mode-f7a752f6d60e1c747dc9330c5f12631bf77f6aa3.tar.gz |
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.
-rw-r--r-- | lisp/ob-ref.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el index 7995341..f11fcf4 100644 --- a/lisp/ob-ref.el +++ b/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)))))) |