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 Yuan Yuan <yu...@gmail.com> on 2009/01/07 08:28:26 UTC

Re: FOP Bug or my mistable: Table Cell content string overflow?

Hi Andreas,

Thanks for your reply!!
I added the language="en" in the fo:block-container. Still didn't work.

So it seems there is no "simple" solution for this problem.

I have to use the "complex" one: adding a zero-width space (&#8203;), as
follow:

<?xml version="1.0" encoding="utf-8" ?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <fo:layout-master-set>
  <fo:simple-page-master master-name="normal"
   page-height="29.7cm" page-width="21cm" margin-top="1cm"
   margin-bottom="1cm" margin-left="1.5cm" margin-right="1.5cm">
   <fo:region-body margin-top="1cm" margin-bottom="1cm" />
   <fo:region-after extent="0.7cm" />
  </fo:simple-page-master>
 </fo:layout-master-set>

 <fo:page-sequence master-reference="normal">
  <fo:flow flow-name="xsl-region-body">
   <fo:table table-layout="fixed" width="100%" border-collapse="collapse"
    border-width="0.2mm" border-style="solid" font-size="7pt">
    <fo:table-column column-width="30%" />
    <fo:table-column column-width="70%" />
    <fo:table-body>
     <fo:table-row>
      <fo:table-cell border-collapse="collapse"
       border-width="0.2mm" border-style="solid" padding="2pt">
       <fo:block-container hyphenate="true" wrap-option="wrap"
overflow="scroll" language="en">
        <fo:block>
         aaaaaaaaaaa&#8203;aaaaaaaaaaaaaaa&#8203;aaaaaaaaaaaaaaaaaaaaaaaa&#8203;aaaaaaaaaaaaaaaa&#8203;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
        </fo:block>
       </fo:block-container>
      </fo:table-cell>
      <fo:table-cell border-collapse="collapse"
       border-width="0.2mm" border-style="solid" padding="2pt">
       <fo:block-container hyphenate="true" wrap-option="wrap"
overflow="scroll" language="en">
        <fo:block>
         ===================&#8203;============================&#8203;============================&#8203;============================
        </fo:block>
       </fo:block-container>
      </fo:table-cell>
     </fo:table-row>
    </fo:table-body>
   </fo:table>
  </fo:flow>
 </fo:page-sequence>
</fo:root>