The following approaches do not seem sufficient and I still encounter the issue in my PDF target:
- Using the option PrintSupport > page-break-before=avoid on the caption style.
- Using page-break-after: avoid on the table style (also in combination with the above).
- From what I understand so far, widow/orphan control is tailored either to paragraphs or to table rows but it cannot be applied to table rows in combination with a caption style or with an adjacent paragraph.
- I cannot see any solution with a selector, but maybe I am not experienced enough with this approach.
- With a generic way I mean to say that I do not want to manually have to adjust all tables e.g. by inserting a kind of <div> block etc.
(If there is any solution with <div>, my alternative hope is that the insertion of such <div> blocks can be automated based on some pattern e.g. with a RegEx search & replace.) - The table where I still encounter the issue stretches across multiple pages.
Can anyone provide a tip or am I missing posts in this forum which cover this?
Current idea, which requires quite some effort to introduce globally in our case, however:
- Put caption in last table row
- Merge columns in last row
- Use table widow control
- Reassign table style (as we want no bottom border below the caption)