Closed steinbacher01 closed 4 years ago
If table row contents does not fit page height, keep-together.within-column="always"
causes page overflow. This is why I didn't apply it.
If you prefer:
keep-together.within-column
to fo:table-row, if it's height is smaller than page height.Please test the second answer by Tony Graham from Stackoverflow.
<attribute-set name="atsRow">
<!-- Keep will be applied when row fits page height. If it does not fit row will be divided into two pages. -->
<attribute name="keep-together.within-column">10</attribute>
</attribute-set>
Regards,
Thank you for the response. This is very helpful.
One of our writers identified a table row that was breaking across a page, separating descriptive text from an image.
I found this answer in a stackoverflow question:
"You should use keep-together.within-column="always" instead."
https://stackoverflow.com/questions/13932261/is-there-an-alternative-to-keep-together-always-on-table-row
But I also noticed this comment in default_style.xml:
Why is this dangerous? Can you suggest a better way to keep a row together within a page if possible?
Thanks,
Leroy Steinbacher