You've already forked godot
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user