Hi Greg, That sounds like a bug... This is caused by the space-after property witch is set on an fo:block nested in an fo:inline. the space-after is drawn for the 1st line of the nested fo:block, not the last line.... See short XSL-FO attached.
Workaround: replace the surrounding fo:inline with an fo:wrapper, witch generates no area. I've don't checked if there is yet a reported bug about this issue. Can you fill in a bug if no, please? Pascal Gregory Buchenberger a écrit : > Hello, > > On page 25 of the PDF under the line "This black and white photo shows > a two-" the line spacing is more than the following lines. The same > thing happens on page 30 after the text "This is a map showing dust > storm damage". The XSL-FO representing that portion of the PDF is the > following: > > <fo:block keep-with-previous.within-page="3"> > <fo:inline font-weight="bold"> > <fo:block space-after="0.5em" space-before="0.5em"> > This black and white photo shows a two-wheeled wagon > piled high with cloth sacks filled with goods. Another > sack lies on the grass next to the wagon. The wagon > has the thin tires and criss-cross pattern of spokes > on the wheels that are characteristic of the 1930s. > </fo:block> > </fo:inline> > </fo:block> > > The line-spacing attribute should be 1.5em throughout the document. > Does anyone know why this extra line spacing is being rendered? > > I'm using FOP trunk (as of early December). I've attached the PDF > document and the XSL-FO used to render it. Your help is greatly > appreciated. > > Kind Regards, > > Gregory Buchenberger, CDIA+, ECMs >
<?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-size="18"> <fo:layout-master-set> <fo:simple-page-master master-name="mymaster"> <fo:region-body margin="1in"/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence master-reference="mymaster"> <fo:flow flow-name="xsl-region-body"> <fo:block> <fo:wrapper> <fo:block space-after="1em"> This black and white photo shows a makeshift home during the Depression. </fo:block> </fo:wrapper> The Great Depression caused immediate hardship on everyday life. </fo:block> </fo:flow> </fo:page-sequence> </fo:root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
