Added handling of \ within srings by using \\
This commit is contained in:
@@ -111,7 +111,12 @@ std::string Output::wrapString(const std::string& str)
|
||||
newstring += '"';
|
||||
for(unsigned int i=0;i<str.size();++i)
|
||||
{
|
||||
if (str[i]=='"')
|
||||
if (str[i]=='\\')
|
||||
{
|
||||
newstring += '\\';
|
||||
newstring += '\\';
|
||||
}
|
||||
else if (str[i]=='"')
|
||||
{
|
||||
newstring += '\\';
|
||||
newstring += '"';
|
||||
|
||||
Reference in New Issue
Block a user