aboutsummaryrefslogtreecommitdiffstats
path: root/fop-core
diff options
context:
space:
mode:
Diffstat (limited to 'fop-core')
-rw-r--r--fop-core/src/main/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java b/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java
index ff2c59f4a..c6a2b05b2 100644
--- a/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java
+++ b/fop-core/src/main/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java
@@ -19,6 +19,9 @@
package org.apache.fop.layoutmgr.inline;
+import java.util.Collections;
+import java.util.List;
+
import org.apache.fop.area.Block;
import org.apache.fop.area.inline.InlineArea;
import org.apache.fop.fo.flow.Wrapper;
@@ -87,4 +90,11 @@ public class WrapperLayoutManager extends LeafNodeLayoutManager {
getPSLM().addIDToPage(fobj.getId());
}
+ public List getNextKnuthElements(LayoutContext context, int alignment) {
+ List list = super.getNextKnuthElements(context, alignment);
+ if (parentLayoutManager instanceof LineLayoutManager && !fobj.hasId() && fobj.hasChildren()) {
+ return Collections.emptyList();
+ }
+ return list;
+ }
}