diff --git a/main.py b/main.py index 2ed3009..c26e616 100755 --- a/main.py +++ b/main.py @@ -51,7 +51,7 @@ def all_to_translate(_dir): to_file: str = '' for _file in _files: _strings = pars_file(_file) - if len(_strings) > 0: _file, to_file = '\n', _strings, '\n', len(_strings), '\n\n\n' + if len(_strings) > 0: to_file = f'{_file}\n {_strings} \n {len(_strings)}\n\n\n' with open('test.txt', 'w') as f: f.write(to_file)