You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by pa...@free.fr on 2008/08/29 15:39:53 UTC

break-before in list-item-body: missing following content

Hello

I have a problem with a "break-before" in a list-item-body:
content following this attribute inside the list-item-body has disappeared
"continue2/2   end"

I have replace with a "space-before" but result is surprising:
I have an overflow log message and 2 page-breaks instead of one
unexpected page-break between "continue2/2" and "end"

Same result with FOP-0.95 and FOP-trunk_svn689406

Regards
Patrice


----------------------------------------
<?xml version='1.0' encoding='ISO-8859-1'?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="A4" page-height="29.7cm" page-width="21cm" margin="2cm">
			<fo:region-body margin-top="0cm" region-name="xsl-region-body"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="A4" >
		<fo:flow flow-name="xsl-region-body">

				<fo:block >
	                <fo:block>body1</fo:block>
					<fo:block>continue1/2</fo:block>
					<fo:block break-before="column">continue2/2</fo:block>
					<fo:block>end</fo:block>
				</fo:block>
				
          <fo:list-block provisional-distance-between-starts="3cm">
            <fo:list-item >
              <fo:list-item-label end-indent="label-end()" >
                <fo:block>label</fo:block>
              </fo:list-item-label>
              <fo:list-item-body start-indent="body-start()" >
				<fo:block >
	                <fo:block>body1</fo:block>
					<fo:block>continue1/2</fo:block>
					<fo:block break-before="column">continue2/2</fo:block>
					<fo:block>end</fo:block>
				</fo:block>
              </fo:list-item-body>
            </fo:list-item>
            <fo:list-item >
              <fo:list-item-label end-indent="label-end()">
                <fo:block >label</fo:block>
              </fo:list-item-label>
              <fo:list-item-body start-indent="body-start()">
				<fo:block >
	                <fo:block>body2</fo:block>
					<fo:block>continue1/2</fo:block>
					<fo:block break-before="page">continue2/2</fo:block>
					<fo:block>end</fo:block>
				</fo:block>
              </fo:list-item-body>
            </fo:list-item>
            <fo:list-item >
              <fo:list-item-label end-indent="label-end()">
                <fo:block >label</fo:block>
              </fo:list-item-label>
              <fo:list-item-body start-indent="body-start()">
				<fo:block >
	                <fo:block>body3</fo:block>
					<fo:block>continue1/2</fo:block>
					<fo:block space-before="30cm">continue2/2</fo:block>
					<fo:block>end</fo:block>
				</fo:block>
              </fo:list-item-body>
            </fo:list-item>
          </fo:list-block>
			
		</fo:flow>
	</fo:page-sequence>
</fo:root>
--------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: break-before in list-item-body: missing following content

Posted by Andreas Delmelle <an...@telenet.be>.
On Aug 29, 2008, at 15:39, patrice.rosnet@free.fr wrote:

Hi

> I have a problem with a "break-before" in a list-item-body:
> content following this attribute inside the list-item-body has  
> disappeared
> "continue2/2   end"

No immediate idea on what the problem is, but for a possible  
(untested) workaround: could you try putting the text in question in  
its own list-item and specify the break-before on that? Should work,  
in theory, if for that item you use an empty label (or one containing  
only a no-break space) the result should look exactly like what  
you're trying to achieve.


HTH!

Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: break-before in list-item-body: missing following content

Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Patrice,

patrice rosnet wrote:
> Hello
> 
> I have a problem with a "break-before" in a list-item-body:
> content following this attribute inside the list-item-body has disappeared
> "continue2/2   end"

It’s a bug in the code dealing with lists (for curious people: the
element list for the content of the list-item-body is split at each
forced break, but the list only retrieves the first part).

Hopefully the list code will be revamped in the next release, but
meanwhile you better use tables. You can achieve the same result with
something like the following:
    <fo:table width="100%" table-layout="fixed">
      <fo:table-column column-width="3cm"/>
      <fo:table-column column-width="100% - 3cm"/>
      <fo:table-body>
        <fo:table-row>
          <fo:table-cell><fo:block>label</fo:block></fo:table-cell>
          <fo:table-cell>
            <fo:block >
              <fo:block>body1</fo:block>
              <fo:block>continue1/2</fo:block>
              <fo:block break-before="column">continue2/2</fo:block>
              <fo:block>end</fo:block>
            </fo:block>
          </fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>

HTH,
Vincent

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org