From 4c5952b8b154713f945ff98040bacc9be8104689 Mon Sep 17 00:00:00 2001 From: Manuel Mall Date: Sun, 14 Jan 2007 02:37:32 +0000 Subject: [PATCH] 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 --- .../org/apache/fop/layoutmgr/inline/LineLayoutManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5