diff --git a/lisp/ob.el b/lisp/ob.el index ac6de9f1b..f3b7d6814 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -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)