PDF plotter: encode the letters ( and ) in strings with context CTX_JS_STR
They are separators and cannot be used in user strings. Fixes #14302 https://gitlab.com/kicad/code/kicad/issues/14302
This commit is contained in:
parent
ae50b8d839
commit
ae63313b55
|
@ -196,7 +196,7 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
|
||||||
}
|
}
|
||||||
else if( aContext == CTX_JS_STR )
|
else if( aContext == CTX_JS_STR )
|
||||||
{
|
{
|
||||||
if( c >= 0x7F || c == '\'' || c == '\\' )
|
if( c >= 0x7F || c == '\'' || c == '\\' || c == '(' || c == ')' )
|
||||||
{
|
{
|
||||||
unsigned int code = c;
|
unsigned int code = c;
|
||||||
char buffer[16];
|
char buffer[16];
|
||||||
|
|
Loading…
Reference in New Issue