]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
In collapsing-border model, tables have no padding and borders are determined at...
authorVincent Hennebert <vhennebert@apache.org>
Mon, 2 Apr 2007 09:56:53 +0000 (09:56 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Mon, 2 Apr 2007 09:56:53 +0000 (09:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@524759 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java

index 1707ad422bb59db874e0e1cacf6e751d940237fa..00ecb01d282a56280f6df77025c8f7dc223a1459 100644 (file)
@@ -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;