Commit 16251ebfaabfb033919dc32d452a81f55bc71e40
1 parent
d0b2f9b221
Exists in
master
Fixed issue: adding \n at the end of the writing line.
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
volia/masseffect.py
... | ... | @@ -103,7 +103,7 @@ |
103 | 103 | for key in keys: |
104 | 104 | subkeys = [subkey for subkey in keys_sub if subkey.startswith(key)] |
105 | 105 | subkeys_str = " ".join(subkeys) |
106 | - of.write(f"{key} {subkeys_str}") | |
106 | + of.write(f"{key} {subkeys_str}\n") | |
107 | 107 | |
108 | 108 | |
109 | 109 | def sub2utt(file: str, subfile: str, outfile: str): |
... | ... | @@ -117,7 +117,7 @@ |
117 | 117 | for key in keys: |
118 | 118 | subkeys = [subkey for subkey in keys_sub if subkey.startswith(key)] |
119 | 119 | for subkey in subkeys: |
120 | - of.write(f"{subkey} {key}") | |
120 | + of.write(f"{subkey} {key}\n") | |
121 | 121 | |
122 | 122 | |
123 | 123 | if __name__ == '__main__': |