--- a/WebBrowser/Tools/WebBrowserTools.py Sat Feb 13 14:17:39 2016 +0100 +++ b/WebBrowser/Tools/WebBrowserTools.py Sun Feb 14 16:47:40 2016 +0100 @@ -44,3 +44,19 @@ return contents return QByteArray() + + +def containsSpace(string): + """ + Function to check, if a string contains whitespace characters. + + @param string string to be checked + @type str + @return flag indicating the presence of at least one whitespace character + @rtype bool + """ + for ch in string: + if ch.isspace(): + return True + + return False