[xep-support] Keep-with-next oddity

From: Jan To¹ovskı <j.tosovsky@gmc.net>
Date: Thu May 29 2014 - 02:00:04 PDT

Dear All,

in my itemized list one entry is followed by an image. They are separated by a space. As I want to color this empty space, I don't use space-before for the image block, but an extra block-container element.

When the spacer together with the image do not fit to the page, they overflow to the next one.

When the block-container contains keep-with-next="always" flag, it influences also preceding block 'Item ###' which overflows as well. There is no demand for this behaviour anywhere.
When keep-with-next="always" attribute is removed, only spacer and image overflows, as expected.

<fo:list-item-body start-indent="body-start()">
      <fo:block space-before.optimum="0pt" space-before.minimum="0pt"
         space-before.maximum="2pt" text-indent="0pt">Item ###</fo:block>
      <fo:block-container height="21pt" background-color="#FFFDD0" keep-with-previous="auto" keep-with-next="always">
      <fo:block font-size="0pt" border-top="0.5pt solid red"
         border-bottom="0.5pt solid red" text-align="center">
         <fo:external-graphic src="url(Images/Image.png)"
            border="0.5pt solid orange" content-height="5cm"
            content-width="100%" height="100%"/>

I am just curious is this behaviour is correct or not.

Thanks, Jan


(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
Received on Thu May 29 08:44:42 2014

This archive was generated by hypermail 2.1.8 : Thu May 29 2014 - 08:45:04 PDT