开发者

xls-fo fop 0.94 Using the keep-together with wrap-option="wrap"

开发者 https://www.devze.com 2022-12-19 19:52 出处:网络
In xls-fo fop 0.94 Using the keep-together along with with wrap-option=\"wrap\" ignores 开发者_JAVA百科the wrap option ? Is there a way to make them both work?

In xls-fo fop 0.94 Using the keep-together along with with wrap-option="wrap" ignores 开发者_JAVA百科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" 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消