From 3c450ea43c0ecaf35f0b6f87d4cf0223f7faed19 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Fri, 3 Feb 2006 17:30:34 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'); } } -- 2.39.5