all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* org-clojure - How to emit an example block?
@ 2014-02-08 20:48 Phill Wolf
  2014-02-08 22:15 ` Thomas S. Dye
  0 siblings, 1 reply; 4+ messages in thread
From: Phill Wolf @ 2014-02-08 20:48 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

How can a Clojure source block contribute its standard-output results as an
example block?  I tried ":results output org" but it expressed the standard
output as a quoted string with \n's where I expected newlines.  For a point
of comparison, org-python seems to be able to do what I want, if "begin_src
org" is effectively the same as "begin_example".  (Is it?)

#+BEGIN_SRC clojure :results output org :exports both
(println "Hello")
(println "world")
#+END_SRC

#+RESULTS:
#+BEGIN_SRC org
"Hello\nworld\n"
#+END_SRC


#+BEGIN_SRC python :results output org :exports both
print "Hello"
print "world"
#+END_SRC

#+RESULTS:
#+BEGIN_SRC org
Hello
world
#+END_SRC

[-- Attachment #2: Type: text/html, Size: 864 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-02-09  7:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-08 20:48 org-clojure - How to emit an example block? Phill Wolf
2014-02-08 22:15 ` Thomas S. Dye
2014-02-08 23:29   ` Phill Wolf
2014-02-09  7:57     ` Bastien

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.