From f7b0e7df8eb200a37e2abd83aa5612741687155e Mon Sep 17 00:00:00 2001 From: Kirill Markin Date: Sat, 8 Jun 2024 11:49:25 +0200 Subject: [PATCH] cleanup --- repo_to_text/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/repo_to_text/main.py b/repo_to_text/main.py index 1b06aac..6858e7c 100644 --- a/repo_to_text/main.py +++ b/repo_to_text/main.py @@ -93,7 +93,7 @@ def save_repo_to_text(path='.') -> str: with open(output_file, 'w') as file: project_name = os.path.basename(os.path.abspath(path)) - file.write(f'Project: {project_name}\n\n') + file.write(f'Directory: {project_name}\n\n') file.write('Directory Structure:\n') file.write('```\n.\n') @@ -123,6 +123,8 @@ def save_repo_to_text(path='.') -> str: logging.error(f'Could not decode file contents: {file_path}') file.write('[Could not decode file contents]\n') file.write('\n```\n') + + file.write('\n') logging.debug('Repository contents written to file') # Read the contents of the generated file