xls-fo fop 0.94使用wrap-option ="wrap"保持在一起

Thu*_*der 7 xml xsl-fo apache-fop

在xls-fo fop 0.94中使用keep-together和wrap-option ="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>
Run Code Online (Sandbox Code Playgroud)

Jer*_*rki 8

keep-together ="always"隐含地设置keep-together.within-line ="always",这基本上禁止换行.使用keep-together.within-column ="always"代替!

另见:http://xmlgraphics.apache.org/fop/faq.html#keep-together

FOP不支持BWT,overflow ="scroll".这仅适用于浏览器模式下的XSL-FO.你不能在纸上滚动.