From 71e92910e627db28ed5bcff19d4593a7bd284575 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 25 Jul 2005 15:41:23 +0000 Subject: [PATCH] Bugzilla #35534 space-* production for list-item and list-block. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@225135 13f79535-47bb-0310-9956-ffa450edef68 --- .../fop/layoutmgr/BlockStackingLayoutManager.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java index c86281c42..9179e71ce 100644 --- a/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java @@ -883,6 +883,12 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager } else if (fobj instanceof org.apache.fop.fo.flow.BlockContainer) { spaceBefore = ((org.apache.fop.fo.flow.BlockContainer)fobj) .getCommonMarginBlock().spaceBefore; + } else if (fobj instanceof org.apache.fop.fo.flow.ListBlock) { + spaceBefore = ((org.apache.fop.fo.flow.ListBlock)fobj) + .getCommonMarginBlock().spaceBefore; + } else if (fobj instanceof org.apache.fop.fo.flow.ListItem) { + spaceBefore = ((org.apache.fop.fo.flow.ListItem)fobj) + .getCommonMarginBlock().spaceBefore; } // append elements representing space-before if (bpUnit > 0 @@ -932,6 +938,12 @@ public abstract class BlockStackingLayoutManager extends AbstractLayoutManager } else if (fobj instanceof org.apache.fop.fo.flow.BlockContainer) { spaceAfter = ((org.apache.fop.fo.flow.BlockContainer)fobj) .getCommonMarginBlock().spaceAfter; + } else if (fobj instanceof org.apache.fop.fo.flow.ListBlock) { + spaceAfter = ((org.apache.fop.fo.flow.ListBlock)fobj) + .getCommonMarginBlock().spaceAfter; + } else if (fobj instanceof org.apache.fop.fo.flow.ListItem) { + spaceAfter = ((org.apache.fop.fo.flow.ListItem)fobj) + .getCommonMarginBlock().spaceAfter; } // append elements representing space-after if (bpUnit > 0 -- 2.39.5