aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/layoutmgr
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2007-04-02 09:56:53 +0000
committerVincent Hennebert <vhennebert@apache.org>2007-04-02 09:56:53 +0000
commit63c20c75446c4d709210ac9d0d57f80306e6fd1e (patch)
tree33a8ad9bbe9f1d913ae03d35b8671f2fff7c53b0 /src/java/org/apache/fop/layoutmgr
parentf958442a17768f56a16a71f53e709b717c965bd0 (diff)
downloadxmlgraphics-fop-63c20c75446c4d709210ac9d0d57f80306e6fd1e.tar.gz
xmlgraphics-fop-63c20c75446c4d709210ac9d0d57f80306e6fd1e.zip
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
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr')
-rw-r--r--src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java6
1 files 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;