Discussion:
[Docutils-users] csv-table directive: excluding columns
Chancy Kennedy
2014-06-05 17:51:37 UTC
Permalink
Hello. I've made a modification to the csv-table directive to use zeroes in
the :widths: option to trigger the exclusion of those columns, e.g. ...

.. csv-table::
:file: file.csv
:widths: 30, 35, 0, 0, 0, 0, 35

... would exclude columns 3 - 6 from being rendered. I'm not very familiar
with docutils. Is this something a patch would be desired for and are there
other modifications I should make for consistency across the table family
of directives?

Also, I'm not subscribed to the mailing list.

Thanks,
Chancy
Guenter Milde
2014-06-10 15:05:54 UTC
Permalink
[-- Type: text/plain, Encoding: --]
Hello. I've made a modification to the csv-table directive to use zeroes in
the :widths: option to trigger the exclusion of those columns, e.g. ...
:file: file.csv
:widths: 30, 35, 0, 0, 0, 0, 35
... would exclude columns 3 - 6 from being rendered. I'm not very familiar
with docutils. Is this something a patch would be desired for and are there
other modifications I should make for consistency across the table family
of directives?
It is an interesting addition that does not stand in the way, so IMV this is
worth a patch. It should be done on the parser side, so that it works for all
writers.

Günter

Loading...