Login  Register

Define table column per column, rather than row per row

Posted by halol on Dec 09, 2019; 8:49am
URL: https://discuss.asciidoctor.org/Define-table-column-per-column-rather-than-row-per-row-tp7400.html

Hello,

Is there a way to define a table column by column, instead of the usual row by row format?

I would like to do something such as:
|===
| col1 | col2 | col3

| col1,row1 | col1,row2 | ... | col1,rown

| col2,row1 | col2,row2 | ... | col2,rown

| col3,row1 | col3,row2 | ... | col3,rown
|===
Is there a way to achieve this?

NOTE: rotating a row by row table would be fine I think. The result will be similar, with all the values for the first column being defined before the values for the second and so on. But rotation doesn't seem to work with the HTML backend yet.

Thanks!