]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Correction of the issue raised on the WhiteSpace Wiki (see accompanying change)
authorAndreas L. Delmelle <adelmelle@apache.org>
Fri, 3 Feb 2006 17:30:34 +0000 (17:30 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Fri, 3 Feb 2006 17:30:34 +0000 (17:30 +0000)
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

index 4abef6528716aed9a4e65a122bf593cbafd5f83c..53e701110a50a4078ff3ec02975121b55bcc3e61 100644 (file)
@@ -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');
                             }
                         }