From 63c20c75446c4d709210ac9d0d57f80306e6fd1e Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Mon, 2 Apr 2007 09:56:53 +0000 Subject: [PATCH] In collapsing-border model, tables have no padding and borders are determined at the cell level. Disable addPendingMarks in such a case. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524759 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/layoutmgr/table/TableLayoutManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java index 1707ad422..00ecb01d2 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java @@ -215,10 +215,12 @@ public class TableLayoutManager extends BlockStackingLayoutManager if (getTable().isSeparateBorderModel()) { addKnuthElementsForBorderPaddingBefore(returnList, !firstVisibleMarkServed); firstVisibleMarkServed = true; + // Border and padding to be repeated at each break + // This must be done only in the separate-border model, as in collapsing + // tables have no padding and borders are determined at the cell level + addPendingMarks(context); } - //Spaces, border and padding to be repeated at each break - addPendingMarks(context); // Elements for the table-header/footer/body LinkedList contentKnuthElements = null; -- 2.39.5