Christian Moe <[email protected]> writes:
This is a bit on the side, but speaking of :colnames, we should
perhaps
document that it also takes a list as an argument. The manual
states:
The ‘colnames’ header argument accepts ‘yes’, ‘no’, or ‘nil’
values.
That sounds like an exhaustive list, and it's the only place
where
colnames is indexed. It might be worth mentioning that one can
also add
colnames to the output even if there aren't any to begin with,
e.g.:
#+begin_src elisp :colnames '("Odd" "Even")
'((1 2) (3 4) (5 6))
#+end_src
#+RESULTS:
| Odd | Even |
|-----+------|
| 1 | 2 |
| 3 | 4 |
| 5 | 6 |
But I think this belongs under [[info:org#Results of
Evaluation]] rather
than[[info:org#Environment of a Code Block]].
+1
I wish I'd known this years ago!
All the best,
Tom
--
Thomas S. Dye
https://tsdye.online/tsdye