From 0cee8eeee2daa02e5bd7691bfc8f47a8d0212415 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Tue, 5 Apr 2022 03:22:57 +0200 Subject: [PATCH] Replace double spaces and tabs with spaces --- fspecs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fspecs.py b/fspecs.py index 1f0a553..741ce0e 100644 --- a/fspecs.py +++ b/fspecs.py @@ -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] == " ":