diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-04-10 07:39:01 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-04-10 07:39:01 +0000 |
commit | 2569a6d829991a2aebad001df2447483d44e1d9b (patch) | |
tree | 6322f43132c46501d647fb83c5ee8cda43eb6be8 /src/java/org/apache/fop/util | |
parent | 45c2b951496f399540056fd971521f4e47c10044 (diff) | |
download | xmlgraphics-fop-2569a6d829991a2aebad001df2447483d44e1d9b.tar.gz xmlgraphics-fop-2569a6d829991a2aebad001df2447483d44e1d9b.zip |
List NBSP under adjustable spaces in CharUtilities.
Generate space elements in the area tree from spaces in fo:character.
Clearly mark test cases which test for NBSP.
Document failure to generate adjustable spaces from fo:character in a disabled test case.
Adjust checks to the fact the fo:character can now also generate spaces.
Enable block_white-space-collapse_2.xml again
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@392901 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/util')
-rw-r--r-- | src/java/org/apache/fop/util/CharUtilities.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/util/CharUtilities.java b/src/java/org/apache/fop/util/CharUtilities.java index f200c3e2f..985c25df7 100644 --- a/src/java/org/apache/fop/util/CharUtilities.java +++ b/src/java/org/apache/fop/util/CharUtilities.java @@ -61,6 +61,8 @@ public class CharUtilities { public static final char ZERO_WIDTH_SPACE = '\u200B'; /** zero-width no-break space (= byte order mark) */ public static final char ZERO_WIDTH_NOBREAK_SPACE = '\uFEFF'; + /** soft hyphen */ + public static final char SOFT_HYPHEN = '\u00AD'; /** @@ -142,7 +144,7 @@ public class CharUtilities { //TODO: are there other kinds of adjustable spaces? return (c == '\u0020' // normal space - /*|| c == ''*/); + || c == NBSPACE); // no-break space } /** |