SchweizerischeBundesbahnen / ch.sbb.polarion.extension.pdf-exporter

Polarion extension for customised PDF exports
14 stars 2 forks source link

Improve CSS for tables which split over multiple pages #130

Closed yurtsevich-sbb closed 3 months ago

yurtsevich-sbb commented 3 months ago

Current Behavior

We have an issue if a Polarion table has to split over multiple pages. The following heading (after the table) and WI is put in the header.

Expected Behavior

PDF should be rendered correctly, not placing any content into footer.

Please, add following definitions to CSS:

table: {
   max-width: 100% !important;
   float: none !importatnt; /* Fixes content inside of table breaking bug */
}

tr { /* Fixes unpleasant breaking of work item custom field tables */
   page-break-inside: avoid;
   break-inside: avoid;
}

Steps To Reproduce

N/A

Environment - OS

N/A

Polarion version

N/A

Extension Version

N/A

Anything else

No response