<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-2"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:788663198;
        mso-list-type:hybrid;
        mso-list-template-ids:2057585846 67698705 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-text:"%1\)";
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Jan:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Can you send me a slightly more complete example to test? Send to my email.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Two notes: <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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. <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>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”.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;color:#1F497D'>Kevin Brown<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;color:#1F497D'>(650) 327-1000 Direct<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;color:#1F497D'>(650) 328-8008 Fax<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;color:#1F497D'>(925) 395-1772 Mobile<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;color:#1F497D'>skype:kbrown01<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;color:#1F497D'><a href="mailto:kevin@renderx.com"><span style='color:blue'>kevin@renderx.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;color:#1F497D'><a href="mailto:sales@renderx.com"><span style='color:blue'>sales@renderx.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas;color:#1F497D'><a href="http://www.renderx.com"><span style='color:blue'>http://www.renderx.com</span></a> <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> xep-support-bounces@renderx.com [mailto:xep-support-bounces@renderx.com] <b>On Behalf Of </b>Jan To¹ovskı<br><b>Sent:</b> Thursday, May 29, 2014 2:00 AM<br><b>To:</b> RenderX Community Support List (xep-support@renderx.com)<br><b>Subject:</b> [xep-support] Keep-with-next oddity<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=CS>Dear All,<o:p></o:p></span></p><p class=MsoNormal><span lang=CS><o:p> </o:p></span></p><p class=MsoNormal><span lang=CS>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.<o:p></o:p></span></p><p class=MsoNormal><span lang=CS><o:p> </o:p></span></p><p class=MsoNormal><span lang=CS>When the spacer together with the image do not fit to the page, they overflow to the next one.<o:p></o:p></span></p><p class=MsoNormal><span lang=CS><o:p> </o:p></span></p><p class=MsoNormal><span lang=CS>Problem:<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>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.<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>When keep-with-next="always" attribute is removed, only spacer and image overflows, as expected.<o:p></o:p></span></p><p class=MsoNormal><span lang=CS><o:p> </o:p></span></p><p class=MsoNormal><span lang=CS><fo:list-item-body start-indent="body-start()"><o:p></o:p></span></p><p class=MsoNormal><span lang=CS> <fo:block><o:p></o:p></span></p><p class=MsoNormal><span lang=CS> <fo:block space-before.optimum="0pt" space-before.minimum="0pt"<o:p></o:p></span></p><p class=MsoNormal><span lang=CS> space-before.maximum="2pt" text-indent="0pt">Item ###</fo:block><o:p></o:p></span></p><p class=MsoNormal><span lang=CS> <fo:block-container height="21pt" background-color="#FFFDD0" keep-with-previous="auto" keep-with-next="always"><o:p></o:p></span></p><p class=MsoNormal><span lang=CS> <fo:block/><o:p></o:p></span></p><p class=MsoNormal><span lang=CS> </fo:block-container><o:p></o:p></span></p><p class=MsoNormal><span lang=CS> <fo:block font-size="0pt" border-top="0.5pt solid red"<o:p></o:p></span></p><p class=MsoNormal><span lang=CS> border-bottom="0.5pt solid red" text-align="center"> <o:p></o:p></span></p><p class=MsoNormal><span lang=CS> <fo:external-graphic src="url(Images/Image.png)"<o:p></o:p></span></p><p class=MsoNormal><span lang=CS> border="0.5pt solid orange" content-height="5cm"<o:p></o:p></span></p><p class=MsoNormal><span lang=CS> content-width="100%" height="100%"/><o:p></o:p></span></p><p class=MsoNormal><span lang=CS> </fo:block><o:p></o:p></span></p><p class=MsoNormal><span lang=CS> </fo:block><o:p></o:p></span></p><p class=MsoNormal><span lang=CS></fo:list-item-body><o:p></o:p></span></p><p class=MsoNormal><span lang=CS><o:p> </o:p></span></p><p class=MsoNormal><span lang=CS>I am just curious is this behaviour is correct or not.<o:p></o:p></span></p><p class=MsoNormal><span lang=CS><o:p> </o:p></span></p><p class=MsoNormal><span lang=CS>Thanks, Jan<o:p></o:p></span></p><p class=MsoNormal><span lang=CS style='font-size:12.0pt;font-family:"Times New Roman","serif"'>!DSPAM:87,5386f72210941582688492! <o:p></o:p></span></p></div></body></html>