xls-fo fop 0.94 使用 keep-together 和 wrap-option=“wrap”
在 xls-fo fop 0.94 中,将 keep-together 与 wrap-option="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>
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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
keep-together="always" 隐式设置 keep-together.within-line="always" 基本上禁止换行。使用 keep-together.within-column="always" 代替!
另请参阅:http://xmlgraphics.apache.org/fop/faq.html# keep-together
BWT、overflow="scroll" 不受 FOP 支持。这仅与浏览器模式下的 XSL-FO 相关。你不能在纸上滚动。
keep-together="always" implicitely sets keep-together.within-line="always" which basically forbids line breaking. Use keep-together.within-column="always" instead!
See also: http://xmlgraphics.apache.org/fop/faq.html#keep-together
BWT, overflow="scroll" is not supported by FOP. That's only relevant for XSL-FO in browser mode. You can't scroll on paper.