Procházet zdrojové kódy

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.
Eric Schulte před 13 roky
rodič
revize
5bcf0c16da
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

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