From 207b1d02288117c0a2cd320a3237adfd47c0fad4 Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Tue, 4 Sep 2012 16:12:52 +0000 Subject: [PATCH] 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 --- .../layoutmgr/table/TableLayoutManager.java | 3 +- status.xml | 3 + .../standard-testcases/table_break-before.xml | 75 +++++++++++++++++++ 3 files changed, 80 insertions(+), 1 deletion(-) create mode 100644 test/layoutengine/standard-testcases/table_break-before.xml 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 + + + + + + + + + + + + + + + + +
-- 2.39.5