mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-11-29 07:58:21 +00:00
org-babel: avoid inserting blank line at bottom of exported code blocks
This commit is contained in:
parent
64cd40700e
commit
d97f767632
@ -121,7 +121,7 @@ options are taken from `org-babel-default-header-args'."
|
||||
(switches (fourth info)))
|
||||
(case type
|
||||
('inline (format "=%s=" (second info)))
|
||||
('block (format "#+BEGIN_SRC %s %s\n%s%s\n#+END_SRC" lang switches body
|
||||
('block (format "#+BEGIN_SRC %s %s\n%s%s#+END_SRC" lang switches body
|
||||
(if (string-match "\n$" body) "" "\n")))
|
||||
('lob (save-excursion
|
||||
(re-search-backward org-babel-lob-one-liner-regexp)
|
||||
|
Loading…
Reference in New Issue
Block a user