diff options
Diffstat (limited to 'src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java')
-rw-r--r-- | src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java | 5 |
1 files changed, 3 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 4d551743c..f805fe9c7 100644 --- a/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java @@ -181,7 +181,8 @@ public class TableLayoutManager extends BlockStackingLayoutManager addKnuthElementsForSpaceBefore(returnList, alignment); if (getTable().isSeparateBorderModel()) { - addKnuthElementsForBorderPaddingBefore(returnList); + addKnuthElementsForBorderPaddingBefore(returnList, !firstVisibleMarkServed); + firstVisibleMarkServed = true; } //Spaces, border and padding to be repeated at each break @@ -283,7 +284,7 @@ public class TableLayoutManager extends BlockStackingLayoutManager } wrapPositionElements(contentList, returnList); if (getTable().isSeparateBorderModel()) { - addKnuthElementsForBorderPaddingAfter(returnList); + addKnuthElementsForBorderPaddingAfter(returnList, true); } addKnuthElementsForSpaceAfter(returnList, alignment); addKnuthElementsForBreakAfter(returnList, context); |