mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-18 16:12:42 +01:00
Replace tabulations in utils.str.normalizeWhitespace. Closes GH-372.
This commit is contained in:
parent
01c0ca63e5
commit
6286558fa5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user