fixes a bug finding empty named results

* lisp/ob.el (org-babel-find-named-result): Fix bug finding empty
  named results.
This commit is contained in:
Eric Schulte 2012-04-28 18:02:13 -04:00
parent 7f2e22339c
commit 604a55edd6
1 changed files with 1 additions and 1 deletions

View File

@ -1498,7 +1498,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 (beginning-of-line 1)
(looking-at org-babel-src-block-regexp)