From 951a6f250638a1dd60f6b3a941555586a0547580 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Sat, 3 Mar 2012 07:35:12 -0700 Subject: [PATCH] fix code block replacement with results * lisp/ob.el (org-babel-find-named-result): Fix code block replacement with results. --- lisp/ob.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/ob.el b/lisp/ob.el index 701e923d4..39f53ef77 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -1497,7 +1497,8 @@ buffer or nil if no such result exists." (concat org-babel-result-regexp "[ \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) + (or (beginning-of-line 1) + (looking-at org-babel-src-block-regexp) (looking-at org-babel-multi-line-header-regexp))) (throw 'is-a-code-block (org-babel-find-named-result name (point)))) (beginning-of-line 0) (point))))) -- 2.11.4.GIT