You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pb...@apache.org on 2002/05/09 06:08:40 UTC

cvs commit: xml-fop/src/org/apache/fop/fo Properties.java

pbwest      02/05/08 21:08:40

  Modified:    src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design
                        Properties.java
  Log:
  Fixed generation of font name containing spaces.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +3 -3      xml-fop/src/org/apache/fop/fo/Attic/Properties.java
  
  Index: Properties.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/Properties.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- Properties.java	7 May 2002 05:17:52 -0000	1.1.2.1
  +++ Properties.java	9 May 2002 04:08:39 -0000	1.1.2.2
  @@ -1,11 +1,11 @@
   /*
  - * $Id: Properties.java,v 1.1.2.1 2002/05/07 05:17:52 pbwest Exp $
  + * $Id: Properties.java,v 1.1.2.2 2002/05/09 04:08:39 pbwest Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources.
    *
    * @author <a href="mailto:pbwest@powerup.com.au">Peter B. West</a>
  - * @version $Revision: 1.1.2.1 $ $Name:  $
  + * @version $Revision: 1.1.2.2 $ $Name:  $
    */
   
   package org.apache.fop.fo;
  @@ -2280,7 +2280,7 @@
                       // 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)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org