Gerber P&P files: escape the double quote char inside user strings.
This is a reserved char, used to quote user strings
This commit is contained in:
parent
7241247fbc
commit
d5b8e4928c
|
@ -403,7 +403,7 @@ wxString ConvertNotAllowedCharsInGerber( const wxString& aString, bool aAllowUtf
|
||||||
* 16 bits sequence unicode
|
* 16 bits sequence unicode
|
||||||
* However if aAllowUtf8Chars is true only unautorized codes will be escaped, because some
|
* However if aAllowUtf8Chars is true only unautorized codes will be escaped, because some
|
||||||
* Gerber files accept UTF8 chars.
|
* Gerber files accept UTF8 chars.
|
||||||
* unautorized codes are ',' '*' '%' '\' and are used as separators in Gerber files
|
* unautorized codes are ',' '*' '%' '\' '"' and are used as separators in Gerber files
|
||||||
*/
|
*/
|
||||||
wxString txt;
|
wxString txt;
|
||||||
|
|
||||||
|
@ -424,6 +424,11 @@ wxString ConvertNotAllowedCharsInGerber( const wxString& aString, bool aAllowUtf
|
||||||
convert = true;
|
convert = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case '"':
|
||||||
|
if( aQuoteString )
|
||||||
|
convert = true;
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue