mmidy       00/02/29 12:03:07

  Modified:    src/org/apache/xalan/xpath/xml FormatterToHTML.java
  Log:
  Escape space character in URI in HTML
  
  Revision  Changes    Path
  1.27      +1 -1      
xml-xalan/src/org/apache/xalan/xpath/xml/FormatterToHTML.java
  
  Index: FormatterToHTML.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/src/org/apache/xalan/xpath/xml/FormatterToHTML.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- FormatterToHTML.java      2000/02/28 22:03:37     1.26
  +++ FormatterToHTML.java      2000/02/29 20:03:07     1.27
  @@ -644,7 +644,7 @@
       {
         char ch = stringArray[i];
         // if first 8 bytes are 0, no need to append them.
  -      if ((ch < 9) || (ch > 127) || (ch == '"'))
  +      if ((ch < 9) || (ch > 127) || (ch == '"') || (ch == ' '))
         {       
           int b1 = (int)((((int)ch) & MASK1) >> 8);
           int b2 = (int)(((int)ch) & MASK2);
  
  
  

Reply via email to