Author: amassari
Date: Sat Feb 18 07:53:31 2006
New Revision: 378734

URL: http://svn.apache.org/viewcvs?rev=378734&view=rev
Log:
When serializing attribute values, escape also carriage returns and tabs (jira# 
1547)

Modified:
    xerces/c/branches/xerces-2.7/src/xercesc/framework/XMLFormatter.cpp

Modified: xerces/c/branches/xerces-2.7/src/xercesc/framework/XMLFormatter.cpp
URL: 
http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/framework/XMLFormatter.cpp?rev=378734&r1=378733&r2=378734&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/framework/XMLFormatter.cpp 
(original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/framework/XMLFormatter.cpp Sat Feb 
18 07:53:31 2006
@@ -74,13 +74,13 @@
     chAmpersand, chLatin_q, chLatin_u, chLatin_o, chLatin_t, chSemiColon, 
chNull
 };
 
-static const unsigned int kEscapeCount = 6;
+static const unsigned int kEscapeCount = 7;
 static const XMLCh gEscapeChars[XMLFormatter::EscapeFlags_Count][kEscapeCount] 
=
 {
-        { chNull      , chNull       , chNull        , chNull       , chNull   
     , chNull }
-    ,   { chAmpersand , chCloseAngle , chDoubleQuote , chOpenAngle  , 
chSingleQuote , chNull }
-    ,   { chAmpersand , chOpenAngle  , chDoubleQuote , chLF         , chNull   
     , chNull }
-    ,   { chAmpersand , chOpenAngle  , chCloseAngle  , chNull       , chNull   
     , chNull }
+        { chNull      , chNull       , chNull        , chNull       , chNull   
     , chNull    , chNull }
+    ,   { chAmpersand , chCloseAngle , chDoubleQuote , chOpenAngle  , 
chSingleQuote , chNull    , chNull }
+    ,   { chAmpersand , chOpenAngle  , chDoubleQuote , chLF         , chCR     
     , chHTab    , chNull }
+    ,   { chAmpersand , chOpenAngle  , chCloseAngle  , chNull       , chNull   
     , chNull    , chNull }
 };
 
 // ---------------------------------------------------------------------------



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

Reply via email to