diff options
author | Jeremias Maerki <jeremias@apache.org> | 2005-10-20 13:30:19 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2005-10-20 13:30:19 +0000 |
commit | 7bb607f9c844db40133a3782bc25b7784d71efd4 (patch) | |
tree | b6f5520b67cf9b5fdc464201d0fbdcfd790a31d9 /src/java/org/apache/fop/layoutmgr/table/TableLayoutManager.java | |
parent | 5637bf5079cdcdf563b267a4890eba45b852210f (diff) | |
download | xmlgraphics-fop-Temp_SpaceResolution.tar.gz xmlgraphics-fop-Temp_SpaceResolution.zip |
Fix for the two problems raised by Simon:
Temp_SpaceResolution
In some cases the element lists were processed in the wrong direction. Fixed by not reversing the list itself anymore but teaching the conditional handling to process the lists backwards.
The problem is now covered by block_space-before_space-after_9 and 9a.
While fixing this another problem surfaced with hard breaks where two element lists are generated.
The problem is now covered by block_space-before_space-after_9a.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_SpaceResolution@326900 13f79535-47bb-0310-9956-ffa450edef68
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); |