lib symbols: make fp filter tolerant to spaces in names.

For historical reasons they are stored in a string using spaces as separators.
So each fp filter is now escaped to remove spaces (replaced by {space})
Fixes #9009
https://gitlab.com/kicad/code/kicad/issues/9009
This commit is contained in:
jean-pierre charras
2021-08-23 18:01:31 +02:00
parent 9f22baf109
commit 4ac2aa675a
4 changed files with 20 additions and 4 deletions
+9
View File
@@ -211,6 +211,15 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
else
converted += c;
}
else if( aContext == CTX_NO_SPACE )
{
if( c == ' ' )
converted += "{space}";
else if( c == '{' )
converted += "{brace}";
else
converted += c;
}
else
converted += c;
}