<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>&nbsp;</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>&nbsp;</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>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>This structure &lt;fo:block/&gt; can have an unexpected effect on keeps, it can break keep logic in the engine. If you can, use &lt;fo:block&gt;&lt;fo:inline/&gt;&lt;fo:block&gt; 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>&nbsp;</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 &#8220;keep-together&#8221; means all three &#8220;.within-page&#8221;, &#8220;.within-column&#8221; and &#8220;.within-line&#8221;.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</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>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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>&nbsp;</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=&quot;always&quot; 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=&quot;always&quot; attribute is removed, only spacer and image overflows, as expected.<o:p></o:p></span></p><p class=MsoNormal><span lang=CS><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=CS>&lt;fo:list-item-body start-indent=&quot;body-start()&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp; &lt;fo:block&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fo:block space-before.optimum=&quot;0pt&quot; space-before.minimum=&quot;0pt&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; space-before.maximum=&quot;2pt&quot; text-indent=&quot;0pt&quot;&gt;Item ###&lt;/fo:block&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fo:block-container height=&quot;21pt&quot; background-color=&quot;#FFFDD0&quot; keep-with-previous=&quot;auto&quot; keep-with-next=&quot;always&quot;&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fo:block/&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fo:block-container&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;fo:block font-size=&quot;0pt&quot; border-top=&quot;0.5pt solid red&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border-bottom=&quot;0.5pt solid red&quot; text-align=&quot;center&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;fo:external-graphic src=&quot;url(Images/Image.png)&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border=&quot;0.5pt solid orange&quot; content-height=&quot;5cm&quot;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content-width=&quot;100%&quot; height=&quot;100%&quot;/&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/fo:block&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&nbsp;&nbsp; &lt;/fo:block&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS>&lt;/fo:list-item-body&gt;<o:p></o:p></span></p><p class=MsoNormal><span lang=CS><o:p>&nbsp;</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>&nbsp;</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>