Browse Source

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
newinvert
jean-pierre charras 3 years ago
parent
commit
412368b7f9
  1. 2
      common/string_utils.cpp

2
common/string_utils.cpp

@ -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];

Loading…
Cancel
Save