raw org and drawer imply verbatim results
This unifies the results handling across a number of different
languages. It is still possible to force tabular output by adding the
":results table" argument.
The following example demonstrates the results in shell python and perl.
** drawer and table
#+begin_src sh :results drawer table
echo -e "1\n2\n3"
#+end_src
#+RESULTS:
:RESULTS:
| 1 |
| 2 |
| 3 |
:END:
#+begin_src perl :results drawer table
"1\n2\n3"
#+end_src
#+RESULTS:
:RESULTS:
| 1 |
| 2 |
| 3 |
:END:
#+begin_src python :results drawer table
return "1\n2\n3"
#+end_src
#+RESULTS:
:RESULTS:
| 1\n2\n3 |
:END:
** drawer
#+begin_src sh :results drawer
echo -e "1\n2\n3"
#+end_src
#+RESULTS:
:RESULTS:
1
2
3
:END:
#+begin_src perl :results drawer
"1\n2\n3"
#+end_src
#+RESULTS:
:RESULTS:
1
2
3
:END:
#+begin_src python :results drawer
return "1\n2\n3"
#+end_src
#+RESULTS:
:RESULTS:
1
2
3
:END:
** raw
#+begin_src sh :results raw
echo -e "1\n2\n3"
#+end_src
#+RESULTS:
1
2
3
#+begin_src perl :results raw
"1\n2\n3"
#+end_src
#+RESULTS:
1
2
3
#+begin_src python :results raw
return "1\n2\n3"
#+end_src
#+RESULTS:
1
2
3
* lisp/ob-core.el (org-babel-result-cond): The "raw", "org" and "drawer"
:results header argument values preclude table processing unless the
"table" argument is given as well.