From: zwz <zhangweize@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [babel] support plantuml
Date: Thu, 26 Aug 2010 22:23:45 +0800 [thread overview]
Message-ID: <m3lj7tlafi.fsf@gmail.com> (raw)
In-Reply-To: loom.20100826T044211-299@post.gmane.org
[-- Attachment #1: Type: text/plain, Size: 1062 bytes --]
Mike Gauland <mikelygee@gmail.com> writes:
> Mike Gauland <mikelygee <at> gmail.com> writes:
>
>> I can get an image if I evaluate the block manually (e.g., via 'C-c
> C-c' with
>> the cursor on the BEGIN block), but when I export the file the image
> is
>> invalid.
>
> I figured it out. I was getting extra carriage returns in the file. I've
> fixed
> them by setting "coding-system-for-write" to 'no-conversion within the
> (let).
>
> --Mike
>
I also encountered the same problem. But it seems not work perfectly by
letting "coding-system-for-write" be 'no-conversion. For example:
In my "test.org"
* test
#+BEGIN_SRC plantuml :file test.png
Alice -> Bob: Authentication Request
Bob --> Alice: Authentication Response
#+END_SRC
#+BEGIN_SRC plantuml :file test2.png
Alice2 -> Bob: Authentication Request
Bob --> Alice: Authentication Response
#+END_SRC
C-c C-c on the second src block does not create a right image.
So here is a new version of "ob-plantuml.el", which utilizes the io
redirection in shell directly.
Hope that it addresses the problem.
[-- Attachment #2: ob-plantuml.el --]
[-- Type: application/emacs-lisp, Size: 2100 bytes --]
[-- Attachment #3: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2010-08-26 14:24 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-25 14:42 [babel] support plantuml zwz
2010-08-25 18:25 ` Eric Schulte
2010-08-26 14:26 ` zwz
2010-08-26 15:00 ` Rainer M Krug
2010-08-26 17:34 ` Eric Schulte
2010-08-27 8:26 ` Rainer M Krug
2010-08-26 15:39 ` Eric Schulte
2010-08-27 11:33 ` zwz
2010-08-26 1:44 ` Mike Gauland
2010-08-26 2:47 ` Mike Gauland
2010-08-26 14:23 ` zwz [this message]
2010-08-29 23:02 ` Michael Gauland
2010-08-30 1:34 ` Eric Schulte
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=m3lj7tlafi.fsf@gmail.com \
--to=zhangweize@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).