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
Phill Wolf phill.w...@gmail.com writes:
How can a Clojure source block contribute its standard-output results as an
example block?
See the :wrap header argument. Something like :wrap example should get
you close.
hth,
Tom
--
Thomas S. Dye
http://www.tsdye.com
ob-clojure.el should use separate cider functions for value and output
results, in order to avoid expressing standard output as some kind of
programming-language string with embedded \n notation. I experimentally
adjusted my copy of ob-clojure (obtained from git clone -b master today)
like this:
Hi Phill,
thanks for your work on this.
Phill Wolf phill.w...@gmail.com writes:
(1) In the cider block, access the result-params.
(2) Put either 'cider-get-value or 'cider-get-raw-value into a
variable, depending on the result-params.
(3) funcall the variable instead of using