emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andy Moreton <andrewjmoreton@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Bug: Bug in svg generation from plantuml sources [9.1.7 (9.1.7-20-ge1f1ac-elpa @ /home/guertler/.emacs.d/elpa/org-20180319/)]
Date: Tue, 20 Mar 2018 16:16:39 +0000	[thread overview]
Message-ID: <vz1muz2bu3c.fsf@gmail.com> (raw)
In-Reply-To: 878tan2dn7.fsf@gmx.de

On Tue 20 Mar 2018, Martin Gürtler wrote:

> ob-plantuml wraps a plantuml source in @startuml/@enduml tags without
> checking whether they are already in the source code. This results in
> the creation of invalid SVG, at least for newer versions of plantuml,
> because the resulting SVG file contains then two XML documents ((I was
> using version 1.2018.2, it seems to work though for older plantuml
> versions <= 8059).
>
> So the following does not work
>
> #+BEGIN_SRC plantuml :file "out.svg"
> @startuml
> a->b
> @enduml
> #+END_SRC
>
>
> while this works:
>
> #+BEGIN_SRC plantuml :file "out.svg"
> a->b
> #+END_SRC
>
> Every plantuml example I found contains @startuml/@enduml so all my old
> org mode files do contain the tags... I feel the required change is not
> very difficult, but unfortunately I do not speak elisp at all...
>
> Emacs  : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.28)
>  of 2018-02-19, modified by Debian
> Package: Org mode version 9.1.7 (9.1.7-20-ge1f1ac-elpa @ /home/guertler/.emacs.d/elpa/org-20180319/)
>
> Thanks for considering,
>
> Martin

Note that newer versions of plantuml supports additional diagram types, so
diagrams may need to use:
  @startuml   .. @enduml
  @startsalt  .. @endsalt
  @startdot   .. @enddot
  @startditaa .. @endditaa
  @startgantt .. @endgantt

It is expected that support for new diagram types will use keywords
starting with "@start" and "@end" as delimiters. See "Generalisation" at
http://plantuml.com/ditaa for more details.

    AndyM

      reply	other threads:[~2018-03-20 16:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20 11:24 Bug: Bug in svg generation from plantuml sources [9.1.7 (9.1.7-20-ge1f1ac-elpa @ /home/guertler/.emacs.d/elpa/org-20180319/)] Martin Gürtler
2018-03-20 16:16 ` Andy Moreton [this message]

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  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=vz1muz2bu3c.fsf@gmail.com \
    --to=andrewjmoreton@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).