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.
This commit is contained in:
Eric Schulte 2012-03-01 13:15:00 -07:00
parent 3e6f5620c6
commit 5bcf0c16da
1 changed files with 1 additions and 1 deletions

View File

@ -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)))