Smarten isEmpty checks to include nothing-but-whitespace.

Fixes https://gitlab.com/kicad/code/kicad/issues/6567
This commit is contained in:
Jeff Young
2020-12-01 16:39:06 +00:00
parent d50d1d84da
commit 3c521942ed
5 changed files with 30 additions and 17 deletions
+6
View File
@@ -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";