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

View File

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