H/vlines ending in the middle of col/rowspan not drawn #27
Labels
bug
Something isn't working
regression
Something was working before, but now isn't
renderer
Related to the final rendering (drawing) step of the table.
Milestone
When lines are drawn with arbitrary length and they end at the middle of a col/rowspan, they are not drawn around that cell. This affects one of the examples in the README:
I've tracked this down to commit 875ebaf, which was released in v0.0.2.
The third line in the snippet below was changed from
+ 1
to+ cell.colspan
, which considers hlines ending at the middle of cells as "having already ended" before the cell began (as it doesn't go all the way to the end of the span), and thus they are filtered out. (An equivalent change was done for vlines in that commit.)typst-tablex/tablex.typ
Lines 1383 to 1385 in 875ebaf
Interestingly, however, they are drawn after a page turn.
Additionally, simply reversing the change to that particular line isn't enough, as it forces the line to be drawn all the way to the end of the cell.
See examples below.
The text was updated successfully, but these errors were encountered: