mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 19:37:52 +00:00
ob-org: Padding code block with an empty title on LaTeX export.
* lisp/ob-org.el (org-babel-execute:org): Padding code block with an empty title on LaTeX export.
This commit is contained in:
parent
8efcd4338d
commit
e3aeb07a17
|
@ -46,7 +46,8 @@ This function is called by `org-babel-execute-src-block'."
|
|||
(let ((result-params (split-string (or (cdr (assoc :results params)) "")))
|
||||
(body (replace-regexp-in-string "^," "" body)))
|
||||
(cond
|
||||
((member "latex" result-params) (org-export-string body "latex"))
|
||||
((member "latex" result-params) (org-export-string
|
||||
(concat "#+Title: \n" body) "latex"))
|
||||
((member "html" result-params) (org-export-string body "html"))
|
||||
((member "ascii" result-params) (org-export-string body "ascii"))
|
||||
(t body))))
|
||||
|
|
Loading…
Reference in a new issue