Nested tables: stripes and separator

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Nested tables: stripes and separator

veselov
Greetings!

Point 1: I think the documentation around table separator is a bit confusing. The separator only controls the column data delimiter, but not the table delimiter. For nested tables, the default column data delimiter changes to `!`, and can be controlled, but the table delimiter changes to `!===` and can not be controlled. What would be the table delimiter for 3rd level nested table?

Also, using multi-character separator seems to have issues. Using separator `YYY` requires that `YYY` separates the data, but the first column renders all but first separator character into the data.

Point 2: If the parent table is striped, the nested tables are also striped. That was totally unexpected, and it's unclear how to "fix" the striping of the nested table to `none` or `all`. I don't believe that's a correct behavior. I wonder if a counter can be used to rectify this.

Sample doc:

= Bundle
// testing with Asciidoctor 2.0.15

[cols="a",stripes=even,separator=%,grid=none]
|===
%
[cols="1,5",separator=YYY]
!===
YYY*Property* YYY potato
YYY*Default Value* YYYRusset
YYY*Explanation* YYY the type of potato to bake
!===
%
[cols="1,5",separator=|]
!===
|*Property* |flour
|*Default Value* |buckwheat
|*Explanation* | what you want your cake to be made out of
!===
|===