]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
I don't see the reason for the distinction beween justified and other alignments.
authorJeremias Maerki <jeremias@apache.org>
Mon, 21 Mar 2005 15:39:55 +0000 (15:39 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 21 Mar 2005 15:39:55 +0000 (15:39 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_KnuthStylePageBreaking@198528 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java

index 6fbfe20eec75441f826c0d135605fc5959e35b0a..a08c7bf55eb06241c21432a1a29d5a800654fdea 100644 (file)
@@ -263,7 +263,7 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager {
                 returnList.add(new KnuthGlue(0, 0, 0,
                         BlockLevelLayoutManager.SPACE_BEFORE_ADJUSTMENT, 
                         returnPosition, true));
-            } else if (alignment == EN_JUSTIFY) {
+            } else /*if (alignment == EN_JUSTIFY)*/ {
                 returnList.add(new KnuthGlue(
                         spaceBefore.getOptimum().getLength().getValue(),
                         spaceBefore.getMaximum().getLength().getValue()
@@ -272,12 +272,12 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager {
                                 - spaceBefore.getMinimum().getLength().getValue(),
                         BlockLevelLayoutManager.SPACE_BEFORE_ADJUSTMENT, 
                         returnPosition, true));
-            } else {
+            } /*else {
                 returnList.add(new KnuthGlue(
                         spaceBefore.getOptimum().getLength().getValue(), 
                         0, 0, BlockLevelLayoutManager.SPACE_BEFORE_ADJUSTMENT,
                         returnPosition, true));
-            }
+            }*/
         }
     }
 
@@ -302,7 +302,7 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager {
                 returnList.add(new KnuthGlue(0, 0, 0, 
                         BlockLevelLayoutManager.SPACE_AFTER_ADJUSTMENT,
                         returnPosition, true));
-            } else if (alignment == EN_JUSTIFY) {
+            } else /*if (alignment == EN_JUSTIFY)*/ {
                 returnList.add(new KnuthGlue(
                         spaceAfter.getOptimum().getLength().getValue(),
                         spaceAfter.getMaximum().getLength().getValue()
@@ -311,12 +311,12 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager {
                                 - spaceAfter.getMinimum().getLength().getValue(),
                         BlockLevelLayoutManager.SPACE_AFTER_ADJUSTMENT, returnPosition,
                         (!spaceAfter.getSpace().isDiscard()) ? false : true));
-            } else {
+            } /*else {
                 returnList.add(new KnuthGlue(
                         spaceAfter.getOptimum().getLength().getValue(), 0, 0,
                         BlockLevelLayoutManager.SPACE_AFTER_ADJUSTMENT, returnPosition,
                         (!spaceAfter.getSpace().isDiscard()) ? false : true));
-            }
+            }*/
             if (!spaceAfter.getSpace().isDiscard()) {
                 returnList.add(new KnuthBox(0, returnPosition, true));
             }