(file_path)
| 49 | |
| 50 | |
| 51 | def process_file(file_path): |
| 52 | with open(file_path, "r+", encoding="utf-8") as file: |
| 53 | content = file.read() |
| 54 | new_content = process_outside_codeblocks(content) |
| 55 | if new_content != content: |
| 56 | file.seek(0) |
| 57 | file.write(new_content) |
| 58 | file.truncate() |
| 59 | print(f"Spaces added to {file_path} (excluding code blocks)") |
| 60 | |
| 61 | |
| 62 | if __name__ == "__main__": |
no test coverage detected