You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2006/02/18 16:53:59 UTC
svn commit: r378735 - /xerces/c/trunk/src/xercesc/framework/XMLFormatter.cpp
Author: amassari
Date: Sat Feb 18 07:53:59 2006
New Revision: 378735
URL: http://svn.apache.org/viewcvs?rev=378735&view=rev
Log:
When serializing attribute values, escape also carriage returns and tabs (jira# 1547)
Modified:
xerces/c/trunk/src/xercesc/framework/XMLFormatter.cpp
Modified: xerces/c/trunk/src/xercesc/framework/XMLFormatter.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/framework/XMLFormatter.cpp?rev=378735&r1=378734&r2=378735&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/XMLFormatter.cpp (original)
+++ xerces/c/trunk/src/xercesc/framework/XMLFormatter.cpp Sat Feb 18 07:53:59 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: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org