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 mike 675 <m_...@yahoo.co.uk> on 2011/08/19 10:58:56 UTC

Page breaks for program listings

Using FOP 1.0. Docbook XML -> FO -> PDF.

Some of the page breaks for my  programlistings look bad. They leave a
single orphan line at the bottom of the page.

I have tried the following FO processing instructions for the relevant
blocks, but they have no effect.

<?dbfo keep-together="always" ?>  (is this only for formal objects --
tables, figures etc?)

<?dbfo-need height="2in" ?> (this does not "push" the following block on to
the next page, as expected)
-- 
View this message in context: http://old.nabble.com/Page-breaks-for-program-listings-tp32293619p32293619.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: Page breaks for program listings

Posted by David Cramer <da...@thingbag.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'd suggest asking this on the docbook-apps mailing list:

http://wiki.docbook.org/DocBookDiscussion

David

On 08/19/2011 03:58 AM, mike 675 wrote:
> 
> Using FOP 1.0. Docbook XML -> FO -> PDF.
> 
> Some of the page breaks for my  programlistings look bad. They leave a
> single orphan line at the bottom of the page.
> 
> I have tried the following FO processing instructions for the relevant
> blocks, but they have no effect.
> 
> <?dbfo keep-together="always" ?>  (is this only for formal objects --
> tables, figures etc?)
> 
> <?dbfo-need height="2in" ?> (this does not "push" the following block on to
> the next page, as expected)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOTwmXAAoJEMHeSXG7afUhb+YH/RLlFZuPoZvecYpwhTgvIKMo
3W7socyVqhQGk1EfnMNAUKFHboEkp5B6JqPa+TD5kvOjj1E9D5OPTRUbNWl5J/Hi
yq41KMpF09kjK1Y0+bkWG1Y0PjlHB0xDAvN8rIK8qQDLLa82ZzRM0DLTCquTJ2r7
oiMpGMvH4kR10t58maW7JyB0I18HqZOlEWnbmCuGa/qFDeSjr2xCvM5ZQkcMOTBX
aUh74ePYBscZWp27hLyZts32eC4evgOj1q5PqnPcqWKboyLbDeGKY6Mg5B4XUmkQ
ZTGVqdBBRKLtH3KqmGwI8fCwK1OQV60IZwL/plA6pwytxAeZKvYme9h5wUrj0lk=
=lru/
-----END PGP SIGNATURE-----

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