Forum How do I...?

Row border at the end of page

nico
I would like to have a table that has line borders at the bottom of each row except the very last one.
If a row breaks across multiple pages it should not have a border line at the bottom of its first part.
I don’t understand how Prince manage this.
If you look at my example:
  • the 3rd row is split on pages 1 and 2 and has a border at the bottom of page 1 (wrong behaviour)
  • the 8th row is split on pages 3 and 4 and has a no border at the bottom of page 3 (correct behaviour, because it is also the very last row)
How do I solve this?
  1. row-border.html3.5 kB
  2. row-border.pdf32.9 kB

Edited by nico

nico
No answer. Should I rephrase my question to make it clearer?
mikeday
Sorry for the delay, figuring out collapsed table borders is always a challenge! I will take a look.
mikeday
I think in this case it may be as simple as adding this rule:
table {
    box-decoration-break: slice
}

This will prevent borders from being repeated across page breaks.