Open rasmi opened 7 months ago
Thanks for raising -- this hits a tricky piece with how we've broken apart table structure. Basically, without rowname_col
there is no row stub, just a table body. This means the line crosses the whole table.
With rowname_col
specified, there is a row stub. So we need to also tell it to underline that row in the row stub. This should be supported once we complete #170, since it will allow you to use loc.stub()
in addition to loc.body()
for underlining.
Makes sense, thank you!
I am trying to create a line that runs across the top of the last row of my table (to separate the "Total" row from the rest of the table). This works great using
.tab_style
, but when I also specifyrowname_col
, the style is removed from therowname_col
column. I would expect that that the defined tab_style still works regardless of whetherrowname_col
is specified.Reproducible example
(adapted from the docs)
With rowname_col
Without rowname_col
Development environment