问题描述
在xls-fo fop 0.94中,同时使用keep-together和wrap-option ="wrap"会忽略wrap选项吗?有办法让它们都起作用吗?
In xls-fo fop 0.94 Using the keep-together along with with wrap-option="wrap" ignores the wrap option ? Is there a way to make them both work?
<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.within-column ="always"!
keep-together="always" implicitely sets keep-together.within-line="always" which basically forbids line breaking. Use keep-together.within-column="always" instead!
另请参见: http://xmlgraphics.apache.org/fop/faq .html#keep-together
BWT,FOP不支持overflow ="scroll".这仅与浏览器模式下的XSL-FO有关.您无法在纸上滚动.
BWT, overflow="scroll" is not supported by FOP. That's only relevant for XSL-FO in browser mode. You can't scroll on paper.
这篇关于xls-fo fop 0.94将keep-together与wrap-option ="wrap"一起使用时,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!