xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Sancho <pascal.san...@takoma.fr>
Subject Re: widows and orphans attributes on fo:block in fop 1.0
Date Mon, 16 Apr 2012 13:34:38 GMT
Hi David,

sorry for late answer.

What you report is related to Bugzilla issue #44328 (see [1]).

orphans and widows properties are not taken into account when 
LF-treatment="preserve".
You can try to apply the patch and feedback if success.

[1] https://issues.apache.org/bugzilla/show_bug.cgi?id=44328


Le 11/04/2012 21:13, David Cramer a écrit :
> Using fop 1.0, I have the following fo:block (with widows and orphans
> set to 5):
>
> <fo:block
>      space-before.minimum="0.8em"
>      space-before.optimum="1em"
>      space-before.maximum="1.2em"
>      space-after.minimum="0.8em"
>      space-after.optimum="1em"
>      space-after.maximum="1.2em"
>      hyphenate="false"
>      wrap-option="wrap"
>      white-space-collapse="false"
>      white-space-treatment="preserve"
>      linefeed-treatment="preserve"
>      text-align="start"
>      font-family="monospace"
>      font-size="85%"
>      widows="5"
>      orphans="5"
>      hyphenation-character="\"
>      background-color="#E0E0E0"
>      id="d40e2055">{
>    "blah:group": {
>        "id" : "1234",​
>        "name" : "newName",​
>        "description" : "A new description"
>    }
> }
> </fo:block>
>
> When I render a pdf, I'm seeing this listing split across the page
> with the penultimate two lines (the "}" and a linefeed) at the top of
> a new page. According to the Compliance page [1], widows and orphans
> is supported. Am I using it incorrectly or misunderstanding what it
> should do?

-- 
Pascal

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


Mime
View raw message