CSV escaping.

This commit is contained in:
Jeff Young
2022-07-24 23:41:41 +01:00
parent 1bad72f14f
commit 582c133835
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -245,6 +245,15 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
else
converted += c;
}
else if( aContext == CTX_CSV )
{
if( c == ',' )
converted += wxT( "{comma}" );
else if( c == '\n' || c == '\r' )
converted += wxT( "{return}" );
else
converted += c;
}
else
{
converted += c;