diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2006-02-03 17:30:34 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2006-02-03 17:30:34 +0000 |
commit | 3c450ea43c0ecaf35f0b6f87d4cf0223f7faed19 (patch) | |
tree | 91ca3ca45f4f950c720a5dba101704ed194de2bc | |
parent | 9de5004fa69cc3ea8041355838bb99032f4ffa75 (diff) | |
download | xmlgraphics-fop-3c450ea43c0ecaf35f0b6f87d4cf0223f7faed19.tar.gz xmlgraphics-fop-3c450ea43c0ecaf35f0b6f87d4cf0223f7faed19.zip |
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
-rw-r--r-- | src/java/org/apache/fop/fo/XMLWhiteSpaceHandler.java | 3 |
1 files changed, 2 insertions, 1 deletions
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'); } } |