1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Remove trailing spaces

This commit is contained in:
Rémi Verschelde
2016-04-02 20:26:12 +02:00
parent 48f057ea81
commit 0a5472e697
42 changed files with 815 additions and 817 deletions

View File

@@ -38,7 +38,7 @@ while (fname!=""):
l = fr.readline()
bc=False
fsingle = fname.strip()
if (fsingle.find("/")!=-1):
fsingle=fsingle[fsingle.rfind("/")+1:]
rep_fl="$filename"
@@ -51,19 +51,19 @@ while (fname!=""):
elif (len_fl<len_fi):
for x in range(len_fi-len_fl):
rep_fl+=" "
if (header.find(rep_fl)!=-1):
if (header.find(rep_fl)!=-1):
text=header.replace(rep_fl,rep_fi)
else:
text=header.replace("$filename",fsingle)
while (l!=""):
if ((l.find("//")!=0 and l.find("/*")!=0 and l.strip()!="") or bc):
text+=l
bc=True
l=fr.readline()
fr.close()
fr.close()
fr=open(fname.strip(),"wb")
fr.write(text)
fr.close()