XSL-FO fop. Long text flows into adjacent cells/block, obscuring stuff there

后端 未结 6 1533
灰色年华
灰色年华 2020-12-11 02:37

Could anyone suggest me a way to make long words (like serial numbers) to be wrapped? I tried some commercial software and there is no such issue. Is it a fop bug or probabl

6条回答
  •  情深已故
    2020-12-11 03:10

    Would hyphenation solve your problem? You should be able to enable hyphenation with a hyphenate="true" attribute. Placement of this attribute will depend on where you want to enable hyphenation.

    Here's a link to FOP's hyphenation compliance: Apache FOP Compliance Page

    Here's a link to the XSL spec: XSL Spec #hyphenate

    If not, you may need to experiment with some keeps properties (like keep-together.within-line).

提交回复
热议问题