From: Manuel Mall Date: Sun, 14 Jan 2007 02:37:32 +0000 (+0000) Subject: Two Knuth boxes following each other should only be considered for an additional... X-Git-Tag: fop-0_94~244 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4c5952b8b154713f945ff98040bacc9be8104689;p=xmlgraphics-fop.git Two Knuth boxes following each other should only be considered for an additional letter space if both are not auxiliary boxes git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@496020 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java index f4480c4e9..f4a83e0fe 100644 --- a/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java +++ b/src/java/org/apache/fop/layoutmgr/inline/LineLayoutManager.java @@ -708,7 +708,9 @@ public class LineLayoutManager extends InlineStackingLayoutManager throw new NullPointerException( "Sequence was empty! lastElement is null"); } - bPrevWasKnuthBox = lastElement.isBox() && ((KnuthElement) lastElement).getW() != 0; + bPrevWasKnuthBox = lastElement.isBox() + && !((KnuthElement) lastElement).isAuxiliary() + && ((KnuthElement) lastElement).getW() != 0; // if last paragraph is open, add the new elements to the paragraph // else this is the last paragraph