You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by David Bridgeland <br...@yahoo.com> on 2003/04/05 01:53:59 UTC

line before fo:list-block is repeated after: fop bug?

I think I have found a bug in FOP 0.20.5rc2.

I have fo that I expect to product PDF that looks like this:

> This line is somehow being repeated:
> 5 The list item body.
> The text after the errant repeat.


Instead it produces PDF that looks like this:

> This line is somehow being repeated:
> 5 The list item body.
> This line is somehow being repeated:
> The text after the errant repeat.

The line "This line is somehow being repeated" is in fact errantly 
repeated after the list-block that produces "5 The list item body".

My FO is below.

Any ideas? Is this a known bug?

Dave Bridgeland

FO file: 
---------------------------------------------------------------------------

<?xml version="1.0"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" 
font-family="serif" font-size="10pt" text-align="justify" 
line-height="normal" language="en">

<fo:layout-master-set>

<fo:simple-page-master master-name="body-draft" page-width="8.5in" 
page-height="11in" margin-top="0.5in" margin-bottom="0.5in" 
margin-left="1in" margin-right="1in">
<fo:region-body margin-bottom="0.5in" margin-top="0.5in" />
</fo:simple-page-master>

</fo:layout-master-set>

<fo:page-sequence hyphenate="true" master-reference="body-draft" 
language="en_GB" format="1" initial-page-number="1">

<fo:flow flow-name="xsl-region-body">
<fo:block >

<fo:block>
This line is somehow being repeated:
<fo:block>
<fo:list-block>
<fo:list-item>
<fo:list-item-label end-indent="label-end()">
<fo:block>5</fo:block>
</fo:list-item-label>
<fo:list-item-body start-indent="body-start()">
<fo:block>
The list item body.
</fo:block>
</fo:list-item-body>
</fo:list-item>
</fo:list-block>
</fo:block>
</fo:block>

<fo:block>
The text after the errant repeat.
</fo:block></fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: line before fo:list-block is repeated after: fop bug?

Posted by Clay Leeds <cl...@medata.com>.
It looks like this known bug:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17472

(and is one of the reasons I can't use 0.20.5rc2)

This bug has been fixed in CVS and a new version is expected within the
next couple of weeks or so. As always, expected dates of release should
be taken with a grain of salt (or an entire shaker).

This message will self-destruct in five seconds...

David Bridgeland wrote:
> I think I have found a bug in FOP 0.20.5rc2.
> 
> I have fo that I expect to product PDF that looks like this:
> 
>> This line is somehow being repeated:
>> 5 The list item body.
>> The text after the errant repeat.
> 
> 
> 
> Instead it produces PDF that looks like this:
> 
>> This line is somehow being repeated:
>> 5 The list item body.
>> This line is somehow being repeated:
>> The text after the errant repeat.
> 
> 
> The line "This line is somehow being repeated" is in fact errantly
> repeated after the list-block that produces "5 The list item body".
> 
> My FO is below.
> 
> Any ideas? Is this a known bug?
> 
> Dave Bridgeland
> 
> FO file:
> ---------------------------------------------------------------------------
> 
> <?xml version="1.0"?>
> 
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
> font-family="serif" font-size="10pt" text-align="justify"
> line-height="normal" language="en">
> 
> <fo:layout-master-set>
> 
> <fo:simple-page-master master-name="body-draft" page-width="8.5in"
> page-height="11in" margin-top="0.5in" margin-bottom="0.5in"
> margin-left="1in" margin-right="1in">
> <fo:region-body margin-bottom="0.5in" margin-top="0.5in" />
> </fo:simple-page-master>
> 
> </fo:layout-master-set>
> 
> <fo:page-sequence hyphenate="true" master-reference="body-draft"
> language="en_GB" format="1" initial-page-number="1">
> 
> <fo:flow flow-name="xsl-region-body">
> <fo:block >
> 
> <fo:block>
> This line is somehow being repeated:
> <fo:block>
> <fo:list-block>
> <fo:list-item>
> <fo:list-item-label end-indent="label-end()">
> <fo:block>5</fo:block>
> </fo:list-item-label>
> <fo:list-item-body start-indent="body-start()">
> <fo:block>
> The list item body.
> </fo:block>
> </fo:list-item-body>
> </fo:list-item>
> </fo:list-block>
> </fo:block>
> </fo:block>
> 
> <fo:block>
> The text after the errant repeat.
> </fo:block></fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>


-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org