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 Vincent Hennebert <vh...@gmail.com> on 2008/09/01 17:11:19 UTC

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

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