瀏覽代碼

* lisp/ob.el: Avoid spurious matches to literal

"#+end_src" inside a source block.

Added newline to org-babel-src-block-regexp.
Sean O'Halpin 14 年之前
父節點
當前提交
12faa69330
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lisp/ob.el

+ 1 - 1
lisp/ob.el

@@ -141,7 +141,7 @@ remove code block execution from the C-c C-c keybinding."
    ;; (4) header arguments
    "\\([^\n]*\\)\n"
    ;; (5) body
-   "\\([^\000]*?\n*\\)[ \t]*#\\+end_src")
+   "\\([^\000]*?\n*\\)\n[ \t]*#\\+end_src")
   "Regexp used to identify code blocks.")
 
 (defvar org-babel-inline-src-block-regexp