Re: [docbook-apps] Page breaks for programlisting elements

From
Bob Stayton <>
Date
2011-08-20T16:16:23+00:00
ID
047401cc5f54$6ce329a0$6600a8c0@pazu
Thread
Re: [docbook-apps] Page breaks for programlisting elements
Hi Michael,
Support for the keep-together processing instruction on programlisting should be 
there, but on inspecting the code, I find that it is not.  I consider this a bug, so 
could you please submit a bug report to the DocBook SourceForge project to get this 
fixed for the next release?  It is supported on para, so you could try putting the 
programlisting inside a para that contains only the keep-together processing 
instruction and programlisting.

A dbfo-need works if it precedes a block element.  Unfortunately, they do not work 
properly in FOP because it has not yet implemented all the properties needed to make 
it work.

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "michael mclaughlin" <>
To: <>
Sent: Saturday, August 20, 2011 1:51 AM
Subject: [docbook-apps] Page breaks for programlisting elements


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. So the grey background box splits over 2 
pages.

 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)

---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: