Update json_to_md.py
Run Pytest with HTML and XML Test Reports / tests (push) Successful in 24s

This commit is contained in:
2025-07-19 18:27:16 +02:00
parent 542fdaa93e
commit 1119bcc022
+4
View File
@@ -97,10 +97,14 @@ def make_test_block(test, status, emoji, level, runtime_params):
body.append("".join(phase_content))
body_content = "\n".join(body).strip()
'''
body_indented = indent(body_content, " ")
return f" - <details>\n <summary>{summary}</summary>\n\n{body_indented}\n </details>\n\n"
'''
markdown = f" - <details>\n <summary>{summary}</summary>\n\n{body_content}\n </details>\n\n"
return "\n".join(line if line.startswith("```") else " " + line for line in markdown.splitlines())
def json_to_md_nested(json_path, md_path, runtime_params=None):
with open(json_path) as f: