From 9a9942f75aed311b37f7098717b86e2b821b6e1b Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 29 Sep 2004 00:20:27 +0000 Subject: [PATCH] Allow embedded double quotes, and hex-encode single quotes. Makes the typical case a bit more readable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxrc/wxrc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/wxrc/wxrc.cpp b/utils/wxrc/wxrc.cpp index 90991340f3..05880d521e 100644 --- a/utils/wxrc/wxrc.cpp +++ b/utils/wxrc/wxrc.cpp @@ -641,7 +641,7 @@ static wxString FileToPythonArray(wxString filename, int num) size_t lng = file.Length(); snum.Printf(_T("%i"), num); - output = _T(" xml_res_file_") + snum + _T(" = \"\"\"\\\n"); + output = _T(" xml_res_file_") + snum + _T(" = '''\\\n"); unsigned char *buffer = new unsigned char[lng]; file.Read(buffer, lng); @@ -654,7 +654,7 @@ static wxString FileToPythonArray(wxString filename, int num) tmp = (wxChar)c; linelng = 0; } - else if (c < 32 || c > 127 || c == '"') + else if (c < 32 || c > 127 || c == '\'') tmp.Printf(_T("\\x%02x"), c); else if (c == '\\') tmp = _T("\\\\"); @@ -671,7 +671,7 @@ static wxString FileToPythonArray(wxString filename, int num) delete[] buffer; - output += _T("\"\"\"\n\n"); + output += _T("'''\n\n"); return output; } -- 2.45.2