From f7a752f6d60e1c747dc9330c5f12631bf77f6aa3 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Tue, 11 Jan 2011 20:40:13 -0700 Subject: [PATCH] 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. --- lisp/ob-ref.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-ref.el b/lisp/ob-ref.el index 7995341c9..f11fcf435 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))))))