summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Schulte <schulte.eric@gmail.com>2011-07-29 16:04:36 -0600
committerEric Schulte <schulte.eric@gmail.com>2011-07-29 16:04:36 -0600
commit274823c8587505dd568eee18dee6111c71f653d9 (patch)
treec8fb538916716aa8a3c6540ec8ca1698d5c0f7a4
parent520bd1feac30dedfbb7532cd2b685adbfc00a801 (diff)
downloadorg-mode-274823c8587505dd568eee18dee6111c71f653d9.tar.gz
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.
-rw-r--r--lisp/ob.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/ob.el b/lisp/ob.el
index aeddb75..4961ceb 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