dbertoni    01/12/21 06:37:13

  Modified:    c/src/XMLSupport FormatterToHTML.cpp
  Log:
  Don't encode spaces in URI attributes.
  
  Revision  Changes    Path
  1.64      +5 -5      xml-xalan/c/src/XMLSupport/FormatterToHTML.cpp
  
  Index: FormatterToHTML.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/XMLSupport/FormatterToHTML.cpp,v
  retrieving revision 1.63
  retrieving revision 1.64
  diff -u -r1.63 -r1.64
  --- FormatterToHTML.cpp       2001/09/26 22:02:43     1.63
  +++ FormatterToHTML.cpp       2001/12/21 14:37:13     1.64
  @@ -888,8 +888,12 @@
                                // 
                                // Unicode, A Primer, by Tony Graham, p. 92.
                                //
  -                             if(ch <= 0x7F)
  +                             if (ch == XalanUnicode::charSpace)
                                {
  +                                     accumContent(ch);
  +                             }
  +                             else if(ch <= 0x7F)
  +                             {
                                        accumHexNumber(ch);
                                }
                                else if(ch <= 0x7FF)
  @@ -963,10 +967,6 @@
   
                                        accumHexNumber(lowByte);
                                }
  -                     }
  -                     else if (ch == XalanUnicode::charSpace)
  -                     {
  -                             accumHexNumber(ch);
                        }
                        else if (ch < m_maxCharacter)
                        {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to