On Tue, Aug 14, 2012 at 1:23 PM, Vincent Hennebert <vhennebert@gmail.com> wrote:

If this is still not enough, then you can change the
MAX_RECOVERY_ATTEMPTS constant in
src/java/org/apache/fop/layoutmgr/BreakingAlgorithm.java to whatever
suits your needs. Note that this constant is also used for line
breaking, so you may want to keep it reasonably low in order to reduce
the impact on performance. Something as small as 10 might be more than
enough for your needs.

Is it worth introducing the ability for the FOP operator to specify the maximum recovery attempts via fop.xconf? Is it worth dividing this into two settings, one for page breaking, another for line breaking?

I'd prefer not to have non-configurable magic numbers of this sort if possible.