|
Q. |
When I format the following code and this formatted result cannot be put in one line, I want to set the break points of the lines 10mm inside from the end edge other than the last line.
<fo:block text-align-last="justify" >
XML and XSL-FO to PDF with High Quality SVG, MathML and Multilingual Support for over 50 Languages
<fo:leader leader-pattern="dots"/>
<fo:page-number-citation ref-id="xxxxx"/>
</fo:block>
[No.2005041502]
|
| A. |
It can be achieved by specifying the plus value for end-indent and specifying the minus value for last-line-end-indent to withdraw the end of line other than the last line, so you can rewrite your code as follows:
<fo:block text-align-last="justify" end-indent="10mm" last-line-end-indent="-10mm">
XML and XSL-FO to PDF with High Quality SVG, MathML and Multilingual Support for over 50 Languages
<fo:leader leader-pattern="dots"/>
<fo:page-number-citation ref-id="xxxxx"/>
</fo:block>
However, because last-line-end-indent and end-indent are "inherited", you should be careful for the inheritance depending on the code.
|