diff --git a/json_to_md.py b/json_to_md.py index fd349a6..793f701 100644 --- a/json_to_md.py +++ b/json_to_md.py @@ -354,10 +354,11 @@ def run_pytest_and_generate_banner_with_logs(md_path, log_path, exit_code): "---\n\n" ) + separator = "\n---\n\n" + try: with open(md_path, "w") as f: - #f.write(full_banner + original_md) - f.write(original_md) + f.write(full_banner + separator + original_md) print("✅ Banner and log summary added to markdown report.") except Exception as e: print(f"❌ Failed to update markdown report: {e}")