From: Andreas L. Delmelle Date: Fri, 3 Feb 2006 17:30:34 +0000 (+0000) Subject: Correction of the issue raised on the WhiteSpace Wiki (see accompanying change) X-Git-Tag: fop-0_92-beta~149 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3c450ea43c0ecaf35f0b6f87d4cf0223f7faed19;p=xmlgraphics-fop.git Correction of the issue raised on the WhiteSpace Wiki (see accompanying change) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@374712 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java b/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java index 4abef6528..53e701110 100644 --- a/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java +++ b/src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java @@ -205,7 +205,8 @@ public class XMLWhiteSpaceHandler { } else { // this is to retain a single space between words inWhiteSpace = true; - if (currentChar != '\u0020') { + if (currentChar != '\u0020' + && whiteSpaceTreatment == Constants.EN_PRESERVE) { charIter.replaceChar('\u0020'); } }