I am getting a strange effect from ":results pp" and ob-clojure. "It\n looks\n like\n this.\n" I built Emacs 24.4.50 from trunk and cloned ob-clojure from git today. clojure-mode is 20140331 from ELPA. cider is 20140411 from ELPA.
Two examples follow.
1. uses =:results pp= ("and\n looks\n like\n this\n")
2. uses its own ~pprint~, and =:results output= (and looks correct)
I expected example 2's output from both 1 and 2.
Here's the data to pretty-print:
#+name: columnar-stuff
| State | Bird |
| New York | Eastern Bluebird |
| New Jersey | Eastern Goldfinch |
| Connecticut | Penguin |
Here is an attempt using =:results pp=:
#+begin_src clojure :exports both :results pp :var rows=columnar-stuff
rows
#+end_src
#+RESULTS:
: "((\"State\" \"Bird\")\n (\"New York\" \"Eastern Bluebird\")\n (\"New Jersey\" \"Eastern Goldfinch\")\n (\"Connecticut\" \"Penguin\"))\n"
Here is a successful (but uglier) src block with an explicit ~pprint~,
and =:results output=:
#+begin_src clojure :exports both :results output :var rows=columnar-stuff
(clojure.pprint/pprint rows)
#+end_src
#+RESULTS:
: (("State" "Bird")
: ("New York" "Eastern Bluebird")
: ("New Jersey" "Eastern Goldfinch")
: ("Connecticut" "Penguin"))
I would prefer =:results pp= to produce the same effect as the explicit ~pprint~, because keeping the ~pprint~ out of the published src block makes the presentation clearer.