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:
jean-pierre charras 2023-03-15 09:31:49 +01:00
parent ae50b8d839
commit ae63313b55
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
}
else if( aContext == CTX_JS_STR )
{
if( c >= 0x7F || c == '\'' || c == '\\' )
if( c >= 0x7F || c == '\'' || c == '\\' || c == '(' || c == ')' )
{
unsigned int code = c;
char buffer[16];