From 08d8331307ba1a55ba04f6222d4ca6a5b6364012 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Mon, 14 Jun 2010 13:50:00 -0700 Subject: [PATCH] babel: fixed bug resulting from two inline src blocks on the same line * contrib/babel/lisp/org-babel.el (org-babel-set-interpreters): less greedy regexp for inline source blocks ensures that there is no confusion when two inline blocks are on the same line. --- contrib/babel/lisp/org-babel.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/babel/lisp/org-babel.el b/contrib/babel/lisp/org-babel.el index d7cd6be07..777be6047 100644 --- a/contrib/babel/lisp/org-babel.el +++ b/contrib/babel/lisp/org-babel.el @@ -164,8 +164,8 @@ can not be resolved.") "\\(" ;; (2) lang (mapconcat 'regexp-quote value "\\|") "\\)" - "\\(\\|\\[\\(.*\\)\\]\\)" ;; (3,4) (unused, headers) - "{\\([^\f\n\r\v]+\\)}" ;; (5) body + "\\(\\|\\[\\(.*?\\)\\]\\)" ;; (3,4) (unused, headers) + "{\\([^\f\n\r\v]+?\\)}" ;; (5) body "\\)"))) (defun org-babel-add-interpreter (interpreter)