Replace double spaces and tabs with spaces

This commit is contained in:
Fierelier 2022-04-05 03:22:57 +02:00
parent 3595f6e4ec
commit 0cee8eeee2
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ def getInfo(part,defn,index = 0):
except:
return False
out = out.replace("\r","")
out = out.replace("\r","").replace(" "," ")
while " " in out:
out = out.replace(" "," ")
try:
while out[0] == " " or out[0] == " ":