Replace tabulations in utils.str.normalizeWhitespace. Closes GH-372.

This commit is contained in:
Valentin Lorentz 2012-06-12 19:37:49 +02:00
parent 01c0ca63e5
commit 6286558fa5
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ def normalizeWhitespace(s, removeNewline=True):
s = str(s)
if removeNewline:
s = str.replace(s, '\n', '')
s = str.replace(s, '\t', ' ')
while ' ' in s:
s = str.replace(s, ' ', ' ')
return s