Smarten isEmpty checks to include nothing-but-whitespace.
Fixes https://gitlab.com/kicad/code/kicad/issues/6567
This commit is contained in:
@@ -362,6 +362,12 @@ wxString EscapeHTML( const wxString& aString )
|
||||
}
|
||||
|
||||
|
||||
bool NoPrintableChars( wxString aString )
|
||||
{
|
||||
return aString.Trim( true ).Trim( false ).IsEmpty();
|
||||
}
|
||||
|
||||
|
||||
char* StrPurge( char* text )
|
||||
{
|
||||
static const char whitespace[] = " \t\n\r\f\v";
|
||||
|
||||
Reference in New Issue
Block a user