forked from mirrors/org-mode
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:
parent
7f2e22339c
commit
604a55edd6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue