Forced prohibition of breaking tables/table cells?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
DAN SEA
Posts: 59
Joined: Tue Sep 13, 2022 4:13 pm

Forced prohibition of breaking tables/table cells?

Post by DAN SEA »

Good day everyone! (said as in "Futurama" :-))
I wanted to ask if there is any way to prevent table / cell breaks so that what I showed in the pictures below does not happen (since it does not look very good and looks like sloppy work; the pictures are just for example, in Microsoft Word) .
For example, in Microsoft Word, there's a feature in the paragraph settings called "keep on following" that avoids what I've shown.
Is there any similar way to deal with this problem - in oxygen ?

Image
Attachments
1.jpg
1.jpg (73.43 KiB) Viewed 429 times
julien_lacour
Posts: 495
Joined: Wed Oct 16, 2019 3:47 pm

Re: Forced prohibition of breaking tables/table cells?

Post by julien_lacour »

Behold everyone!

Where do you want to forbid these breaks?

If you are using the DITA Map PDF - based on HTML5 & CSS transformation scenario you can use the page-break-before/page-break-after/page-break-inside properties (or their equivalent break-before/break-after/break-inside).

For example you can use a rule similar to this one:

Code: Select all

*[class ~= "topic/thead"] {
  page-break-after: avoid;
}
Regards,
Julien
Post Reply