在xls fop 0.94中,使用keep together with wrap选项=“wrap”忽略wrap选项?有办法让他们两个都工作吗?

   <fo:table-row border="1pt solid black" keep-together="always">
        <fo:table-cell>
            <fo:block overflow="scroll" wrap-option="wrap">
          This is a long text It is desired that this text be wrapped in the table cell but just can not make it happen!
            </fo:block>
        </fo:table-cell>
   </fo:table-row>

最佳答案

keep together=“always”隐式集合keep together.within line=“always”这基本上禁止换行。使用keep together。改为在column=“always”中使用keep together!
另请参见:http://xmlgraphics.apache.org/fop/faq.html#keep-together
bwt,overflow=“scroll”不受fop支持。这只与浏览器模式下的xsl-fo相关。你不能在纸上滚动。

10-08 14:18