[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [FO] Truncated line and keep-together="always"

Subject: Re: [FO] Truncated line and keep-together="always"
From: "Josef Pavlas" <pepcza@xxxxxxxxx>
Date: Fri, 21 Nov 2008 12:30:07 +0100
Re:  [FO] Truncated line and keep-together="always"
Hi,

try using only keep-together.within-page="always". When you set
keep-toghether property (which is "shortcut"), it sets also
keep-together.within-line="always".

Josef Pavlas

2008/11/21 Florent Georges <lists@xxxxxxxxxxxx>:
>  Hi,
>
>  When I set the property keep-together to always on a block, the
> line within the block are truncated on the resulting PDF.  It
> looks like a bug, but I'd like to be sure before reporting it.
> Below is a test case, the result can be shown there:
>
>    http://www.fgeorges.org/tmp/line-ok.pdf
>      -> without keep-together
>    http://www.fgeorges.org/tmp/line-truncated.pdf
>      -> with keep-together
>
>  Test case:
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>   <fo:layout-master-set>
>      <fo:simple-page-master master-name="a4"
>            margin="12.5mm" page-height="297mm" page-width="210mm">
>         <fo:region-body/>
>      </fo:simple-page-master>
>   </fo:layout-master-set>
>   <fo:page-sequence master-reference="a4">
>      <fo:flow flow-name="xsl-region-body">
>         <!--
>            If I remove the attribute, everything's fine.
>         -->
>         <fo:block keep-together="always">
>            Lorem ipsum dolor sit amet, consectetuer adipiscing
>            elit.  Ut diam. Ut euismod, nunc at semper suscipit,
>            lorem nulla accumsan lacus, quis faucibus massa risus
>            et magna.
>         </fo:block>
>      </fo:flow>
>   </fo:page-sequence>
> </fo:root>
>
>  By the way, I've just noticed that the output is correct if I replace
> "always" by a number...
>
>  Regards,
>
> --
> Florent Georges
> http://www.fgeorges.org/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.