xls-fo fop 0.94 使用 keep-together 和 wrap-option=“wrap”

发布于 2024-08-20 13:49:29 字数 490 浏览 6 评论 0原文

在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

城歌 2024-08-27 13:49:30

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文