From fop-users-return-35251-apmail-xmlgraphics-fop-users-archive=xmlgraphics.apache.org@xmlgraphics.apache.org Mon Apr 16 13:35:14 2012 Return-Path: X-Original-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Delivered-To: apmail-xmlgraphics-fop-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5AAA966E for ; Mon, 16 Apr 2012 13:35:14 +0000 (UTC) Received: (qmail 50967 invoked by uid 500); 16 Apr 2012 13:35:14 -0000 Delivered-To: apmail-xmlgraphics-fop-users-archive@xmlgraphics.apache.org Received: (qmail 50877 invoked by uid 500); 16 Apr 2012 13:35:13 -0000 Mailing-List: contact fop-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: fop-users@xmlgraphics.apache.org Delivered-To: mailing list fop-users@xmlgraphics.apache.org Received: (qmail 50870 invoked by uid 99); 16 Apr 2012 13:35:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 13:35:13 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [150.70.236.112] (HELO out01.muc1.mx.trendmicro.eu) (150.70.236.112) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 13:35:03 +0000 Received: from relay02.muc1.mx.trendmicro.eu (unknown [10.36.98.66]) by out01.muc1.mx.trendmicro.eu (Postfix) with ESMTP id 06901980455 for ; Mon, 16 Apr 2012 13:34:43 +0000 (UTC) Received: from exchange.takoma.fr (unknown [195.5.233.219]) by relay02.muc1.mx.trendmicro.eu (Postfix) with ESMTP id 8325D980424 for ; Mon, 16 Apr 2012 13:34:41 +0000 (UTC) Received: from [192.168.4.14] (192.168.4.14) by exchange.takoma.fr (192.168.0.100) with Microsoft SMTP Server (TLS) id 8.2.176.0; Mon, 16 Apr 2012 15:34:39 +0200 Message-ID: <4F8C1FEE.9070309@takoma.fr> Date: Mon, 16 Apr 2012 15:34:38 +0200 From: Pascal Sancho User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Subject: Re: widows and orphans attributes on fo:block in fop 1.0 References: <4F85D7C3.7050408@rackspace.com> In-Reply-To: <4F85D7C3.7050408@rackspace.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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): > > 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" > } > } > > > 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