Function: org-babel-plantuml-make-body
org-babel-plantuml-make-body is a byte-compiled function defined in
ob-plantuml.el.gz.
Signature
(org-babel-plantuml-make-body BODY PARAMS)
Documentation
Return PlantUML input string.
BODY is the content of the source block and PARAMS is a property list of source block parameters. This function relies on the org-babel-expand-body:generic function to extract :var entries from PARAMS and on the org-babel-variable-assignments:plantuml function to convert variables to PlantUML assignments.
If BODY does not contain @startXXX ... @endXXX clauses, @startuml
... @enduml will be added.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ob-plantuml.el.gz
(defun org-babel-plantuml-make-body (body params)
"Return PlantUML input string.
BODY is the content of the source block and PARAMS is a property list
of source block parameters. This function relies on the
`org-babel-expand-body:generic' function to extract `:var' entries
from PARAMS and on the `org-babel-variable-assignments:plantuml'
function to convert variables to PlantUML assignments.
If BODY does not contain @startXXX ... @endXXX clauses, @startuml
... @enduml will be added."
(let ((full-body
(org-babel-expand-body:generic
body params (org-babel-variable-assignments:plantuml params))))
(if (string-prefix-p "@start" body t) full-body
(format "@startuml\n%s\n@enduml" full-body))))