From 01a64f1869ac14de9904fa5c92b3ea1ff4ebac17 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 18 Mar 2005 15:14:46 +0000 Subject: [PATCH] Insert penalties for column breaks, too. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198517 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/layoutmgr/BlockStackingLayoutManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java index 1366f5010..6fbfe20ee 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java @@ -205,6 +205,7 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager { protected boolean addKnuthElementsForBreakBefore(LinkedList returnList, Position returnPosition, int breakBefore) { if (breakBefore == EN_PAGE + || breakBefore == EN_COLUMN || breakBefore == EN_EVEN_PAGE || breakBefore == EN_ODD_PAGE) { // return a penalty element, representing a forced page break @@ -226,6 +227,7 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager { protected boolean addKnuthElementsForBreakAfter(LinkedList returnList, Position returnPosition, int breakAfter) { if (breakAfter == EN_PAGE + || breakAfter == EN_COLUMN || breakAfter == EN_EVEN_PAGE || breakAfter == EN_ODD_PAGE) { // add a penalty element, representing a forced page break -- 2.39.5