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 Andrew McFarland <aa...@gmail.com> on 2008/01/30 13:02:35 UTC
Widows and linefeed-treatment="preserve"
Hi,
I'm having trouble with widows on fo:blocks where linefeed-treatment
is set to preserve. I'm using FOP 0.94. When I process the attached
fo, I get a PDF with a one-line widow at the start of the second page,
even though widows for that fo:block is set to 4.
Can anyone explain what is going on here?
(Some background to the problem: I'm using FOP to produce PDFs from
DocBook via the 1.73.2 XSLT. I'm trying to control the widows and
orphans for the output from <literallayout/> elements. The attached fo
was a file I wrote from scratch that demonstrates the problem.)
--
You did not read the manual
Our tech writer is sad
Locked in the toilet, he is crying
Re: Widows and linefeed-treatment="preserve"
Posted by Andrew McFarland <aa...@gmail.com>.
> Andrew, would you mind opening a bug in Bugzilla [1]?
Done.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44328
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Widows and linefeed-treatment="preserve"
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Hmm, FOP seems to treat the individual lines as separate paragraphs and
therefore doesn't apply widow/orphan treatment. But XSL says: "The
"widows" property specifies the minimum number of line-areas in the last
area generated by the formatting object." That means this is a bug.
Andrew, would you mind opening a bug in Bugzilla [1]? I suspect this may
not be so easy to fix.
[1] http://issues.apache.org/bugzilla/enter_bug.cgi
On 30.01.2008 13:02:35 Andrew McFarland wrote:
> Hi,
>
> I'm having trouble with widows on fo:blocks where linefeed-treatment
> is set to preserve. I'm using FOP 0.94. When I process the attached
> fo, I get a PDF with a one-line widow at the start of the second page,
> even though widows for that fo:block is set to 4.
>
> Can anyone explain what is going on here?
>
> (Some background to the problem: I'm using FOP to produce PDFs from
> DocBook via the 1.73.2 XSLT. I'm trying to control the widows and
> orphans for the output from <literallayout/> elements. The attached fo
> was a file I wrote from scratch that demonstrates the problem.)
> --
> You did not read the manual
> Our tech writer is sad
> Locked in the toilet, he is crying
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org