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

Kevin Brown kevin at renderx.com
Thu May 29 12:36:58 PDT 2014


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 at renderx.com> kevin at renderx.com

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

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

 

 

 

 

 

From: xep-support-bounces at renderx.com
[mailto:xep-support-bounces at renderx.com] On Behalf Of Jan Tošovský
Sent: Thursday, May 29, 2014 2:00 AM
To: RenderX Community Support List (xep-support at 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! 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20140529/f867c08b/attachment.html>


More information about the Xep-support mailing list