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.
This commit is contained in:
Eric Schulte 2011-07-29 16:04:36 -06:00
parent 520bd1feac
commit 274823c858
1 changed files with 1 additions and 1 deletions

View File

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