Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.3
-
None
-
None
Description
The text should be presented on two lines (they are separated by line breaks - not by wrapping - is plenty of space in the page):
line1 line1 line1 line1 LINE1
line2
Instead it is on three lines.
line1 line1 line1 line1
LINE1
line2
The snippet:
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions" xml:lang="en-us"> <fo:layout-master-set> <fo:simple-page-master master-name="css2fo-default" page-width="8.5in" page-height="11in"> <fo:region-body margin="1in"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="css2fo-default" force-page-count="no-force" id="last-page-sequence" line-height-shift-adjustment="disregard-shifts"> <fo:flow flow-name="xsl-region-body"> <fo:block-container> <fo:block linefeed-treatment="preserve" wrap-option="wrap"><fo:inline>line1 line1 <fo:inline>line1 line1 LINE1</fo:inline> <fo:inline>line2</fo:inline></fo:inline></fo:block> </fo:block-container> </fo:flow> </fo:page-sequence> </fo:root>
If you add more words to the example, you will see that it always add a break before the second-to-last word.
If you remove the inline: <fo:inline>line2</fo:inline> and leave just the line2 text, this corrects the problem. The same if you remove the tags of any inline.