From 5bcf0c16dae8d9ef2ed7da6279a904d5d8184b70 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Thu, 1 Mar 2012 13:15:00 -0700 Subject: [PATCH] Don't miss a code block when there are confounding spaces after the result name. * lisp/ob.el (org-babel-find-named-result): Don't miss a code block when there are confounding spaces after the result name. --- lisp/ob.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob.el b/lisp/ob.el index 6507b50d4..701e923d4 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -1495,7 +1495,7 @@ buffer or nil if no such result exists." (catch 'is-a-code-block (when (re-search-forward (concat org-babel-result-regexp - "[ \t]" (regexp-quote name) "[ \t\n\f\v\r]") nil t) + "[ \t]" (regexp-quote name) "[ \t\n\f\v\r]+") nil t) (when (and (string= "name" (downcase (match-string 1))) (or (looking-at org-babel-src-block-regexp) (looking-at org-babel-multi-line-header-regexp)))