emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Immanuel Litzroth <immanuel.litzroth@gmail.com>
To: emacs-orgmode@gnu.org
Subject: buggy plantuml function
Date: Sun, 15 Nov 2020 13:27:06 +0100	[thread overview]
Message-ID: <CAM1nAczdDB7z+e3_HtmNSd=jMiC_MVRekYw0XEUivxtTpv=evw@mail.gmail.com> (raw)

(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 ((assignments (org-babel-variable-assignments:plantuml params)))
    (if (string-prefix-p "@start" body t) assignments
      (format "@startuml\n%s\n@enduml"
      (org-babel-expand-body:generic body params assignments)))))

expands to assignments if the body starts with @startmindmap?
-- Researching the dual problem of finding the function that has a
given point as fixpoint.

             reply	other threads:[~2020-11-15 12:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-15 12:27 Immanuel Litzroth [this message]
     [not found] ` <5d8d7ed3-5d6a-d24a-f569-2933604ec657@gmx.at>
2020-11-23 11:32   ` Immanuel Litzroth
2020-11-23 13:19     ` Heinz Tuechler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM1nAczdDB7z+e3_HtmNSd=jMiC_MVRekYw0XEUivxtTpv=evw@mail.gmail.com' \
    --to=immanuel.litzroth@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: buggy plantuml function' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).