From: Vincent Hennebert Date: Tue, 4 Sep 2012 16:12:52 +0000 (+0000) Subject: Bugzilla #45715: Restored support for break-before on fo:table. X-Git-Tag: fop-2_0~296 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=207b1d02288117c0a2cd320a3237adfd47c0fad4;p=xmlgraphics-fop.git Bugzilla #45715: Restored support for break-before on fo:table. Patch by Luis Bernardo git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1380726 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java index 5a4152c69..928be43c4 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java @@ -39,6 +39,7 @@ import org.apache.fop.fo.properties.KeepProperty; import org.apache.fop.layoutmgr.BlockLevelEventProducer; import org.apache.fop.layoutmgr.BlockStackingLayoutManager; import org.apache.fop.layoutmgr.BreakElement; +import org.apache.fop.layoutmgr.BreakOpportunity; import org.apache.fop.layoutmgr.ConditionalElementListener; import org.apache.fop.layoutmgr.KnuthElement; import org.apache.fop.layoutmgr.KnuthGlue; @@ -62,7 +63,7 @@ import org.apache.fop.util.BreakUtil; * the render background. */ public class TableLayoutManager extends BlockStackingLayoutManager - implements ConditionalElementListener { + implements ConditionalElementListener, BreakOpportunity { /** * logging instance diff --git a/status.xml b/status.xml index b8fc34aa8..adde62df3 100644 --- a/status.xml +++ b/status.xml @@ -62,6 +62,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Restored support for break-before on fo:table. + When an fo:block has a non-zero value for its text-indent property and is broken over two pages of different widths, then the first line on the second page is missing one word and diff --git a/test/layoutengine/standard-testcases/table_break-before.xml b/test/layoutengine/standard-testcases/table_break-before.xml new file mode 100644 index 000000000..b0a9a058d --- /dev/null +++ b/test/layoutengine/standard-testcases/table_break-before.xml @@ -0,0 +1,75 @@ + + + + + +

+ This test checks that break-before works on fo:table. +

+
+ + + + + + + + + + + Page 1 + + + + + + Page 2 + + + + + + + + + + + Page 3 + + + + + Page 4 + + + + + + + + + + + + + + + + +