]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixed generation of font name containing spaces.
authorPeter Bernard West <pbwest@apache.org>
Thu, 9 May 2002 04:08:39 +0000 (04:08 +0000)
committerPeter Bernard West <pbwest@apache.org>
Thu, 9 May 2002 04:08:39 +0000 (04:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@194811 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/fo/Properties.java

index f217c6244e3dc5dfee91588fe7864e4ee0660dc6..bdfdb25cbdbf0dd4be26e5d0fe7fd4a781c3c258 100644 (file)
@@ -2280,7 +2280,7 @@ public abstract class Properties {
                     // 7.8.2 "font-family" <family-name>
                     Iterator font = ((PropertyValueList)value).iterator();
                     while (font.hasNext())
-                        name = name + " "
+                        name = name + (name.length() == 0 ? "" : " ")
                                 + ((StringType)(font.next())).getString();
                 }
                 else if (value instanceof StringType)