Hello,
The :colnames header argument in src blocks often causes confusion among
users.
#+cindex: @samp{colnames}, header argument
The =colnames= header argument accepts =yes=, =no=, or =nil= values.
The default value is =nil=: if an input table has column
names---because the second row is a horizontal rule---then Org
removes the column names, processes the table, puts back the column
names, and then writes the table to the results block. Using =yes=,
Org does the same to the first non-hline row, even if the initial
table does not contain any horizontal rule. When set to =no=, Org
does not pre-process column names at all.
With :colnames yes and :colnames nil, the colnames are actually
*stripped* when table is passed to the code, and re-added to the result.
With ":colnames no" Org passes the full table, including colnames to the
src block.
So, I am thinking about something more intuitive like
- :strip-colnames
- :detach-colnames
The allowed values should also be yes, no, and 'auto (previously nil).
Thoughts? Other ideas?
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>