TODO src block regexp doesn't match with empty body
- State "TODO" from ""
Sometimes I like to create an empty body just to do C-c C-v z and start my session.
nil
This seems to fix it but I haven't tested and not confident about the +? *? stuff.
Modified lisp/ob.el diff –git a/lisp/ob.el b/lisp/ob.el index 6e74c15..eb06488 100644 — a/lisp/ob.el +++ b/lisp/ob.el @@ -113,7 +113,7 @@ remove code block execution from the C-c C-c keybinding." ;; (4) header arguments "\\([\n]*\\)\n" ;; (5) body
- "\\([\000]+?\n\\)[ \t]*#\\+endsrc")
- "\\([\000]*?\n\\)[ \t]*#\\+endsrc") "Regexp used to identify code blocks.")
(defvar org-babel-inline-src-block-regexp