Format unknown number of columns
Posted by kecai on Mar 28, 2020; 9:23pm
URL: https://discuss.asciidoctor.org/Format-unknown-number-of-columns-tp7801.html
I would like to include a csv as table and center all columns, allowing the number of columns to change. From the examples I have seen in the Manual, the number of columns needs to be explicit when using "cols" attribute, for example "cols=3*^", for centering all 3 columns in the table. Is there a way to apply a style to all n columns, where n can vary? Something like this:
[%header, %autowidth.stretch, format=csv, align=center, cols="n*^"]
|===
include::data.csv[]
|===
Thanks!