From 274823c8587505dd568eee18dee6111c71f653d9 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Fri, 29 Jul 2011 16:04:36 -0600 Subject: [PATCH] if a code block has a body, its last character must be a newline * lisp/ob.el (org-babel-src-block-regexp): If a code block has a body, its last character must be a newline. --- lisp/ob.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob.el b/lisp/ob.el index aeddb753f..4961ceb68 100644 --- a/lisp/ob.el +++ b/lisp/ob.el @@ -138,7 +138,7 @@ remove code block execution from the C-c C-c keybinding." ;; (4) header arguments "\\([^\n]*\\)\n" ;; (5) body - "\\([^\000]*?\\)[ \t]*#\\+end_src") + "\\([^\000]*?\n\\)?[ \t]*#\\+end_src") "Regexp used to identify code blocks.") (eval-when-compile