mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +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)
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user