Skip to content

Commit 989bcc7

Browse files
authored
Remove space in label when space width set to zero
1 parent b498a80 commit 989bcc7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

trdg/run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,9 +469,10 @@ def main():
469469
) as f:
470470
for i in range(string_count):
471471
file_name = str(i) + "." + args.extension
472+
label = strings[i]
472473
if args.space_width == 0:
473-
file_name = file_name.replace(" ", "")
474-
f.write("{} {}\n".format(file_name, strings[i]))
474+
label = label.replace(" ", "")
475+
f.write("{} {}\n".format(file_name, label))
475476

476477

477478
if __name__ == "__main__":

0 commit comments

Comments
 (0)