You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/12/21 15:37:13 UTC

cvs commit: xml-xalan/c/src/XMLSupport FormatterToHTML.cpp

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: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org