mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-27 07:37:25 +00:00
more robust to code blocks with empty bodies
* lisp/ob.el (org-babel-parse-src-block-match): More robust to code blocks with empty bodies.
This commit is contained in:
parent
597e1eb4fe
commit
0037ef9261
@ -1024,7 +1024,7 @@ may be specified in the current buffer."
|
|||||||
(if (and (> sub-length 0)
|
(if (and (> sub-length 0)
|
||||||
(string= "\n" (substring body sub-length)))
|
(string= "\n" (substring body sub-length)))
|
||||||
(substring body 0 sub-length)
|
(substring body 0 sub-length)
|
||||||
body))))
|
(or body "")))))
|
||||||
(preserve-indentation (or org-src-preserve-indentation
|
(preserve-indentation (or org-src-preserve-indentation
|
||||||
(string-match "-i\\>" switches))))
|
(string-match "-i\\>" switches))))
|
||||||
(list lang
|
(list lang
|
||||||
|
Loading…
Reference in New Issue
Block a user