[xep-support] Re: Keep-with-next oddity

From: Kevin Brown <kevin@renderx.com>
Date: Thu May 29 2014 - 12:36:58 PDT

Jan:

 

Can you send me a slightly more complete example to test? Send to my email.

 

Two notes:

 

This structure <fo:block/> can have an unexpected effect on keeps, it can
break keep logic in the engine. If you can, use
<fo:block><fo:inline/><fo:block> so that it is not flagged for collapse. It
is unclear this is the issue.

 

Also, should you be more specific in the keep (i.e. not shorthand but
keep-with-next.within-page) Shorthand can lead to unexpected results. I know
this for sure on keep-together. Saying just "keep-together" means all three
".within-page", ".within-column" and ".within-line".

 

 

Kevin Brown

(650) 327-1000 Direct

(650) 328-8008 Fax

(925) 395-1772 Mobile

skype:kbrown01

 <mailto:kevin@renderx.com> kevin@renderx.com

 <mailto:sales@renderx.com> sales@renderx.com

 <http://www.renderx.com> http://www.renderx.com

 

 

 

 

 

From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of Jan To¹ovskı
Sent: Thursday, May 29, 2014 2:00 AM
To: RenderX Community Support List (xep-support@renderx.com)
Subject: [xep-support] Keep-with-next oddity

 

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.

 

Problem:

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>

      <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/>

      </fo:block-container>

      <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%"/>

      </fo:block>

   </fo:block>

</fo:list-item-body>

 

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

 

Thanks, Jan

!DSPAM:87,5386f72210941582688492!

_______________________________________________
(*) 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
ww.renderx.com/terms-of-service.html
Received on Thu May 29 19:21:25 2014

This archive was generated by hypermail 2.1.8 : Thu May 29 2014 - 19:21:26 PDT