Update json_to_md.py
This commit is contained in:
+6
-11
@@ -70,21 +70,16 @@ def make_test_block(test, status, emoji, level, runtime_params):
|
||||
summary = f"{emoji} Test {test['global_number']}"
|
||||
if params:
|
||||
param_display = ", ".join(
|
||||
f"<code>{html.escape(str(k))}={html.escape(sanitize_param_value(v))}</code>"
|
||||
f"{html.escape(str(k))}={html.escape(sanitize_param_value(v))}"
|
||||
for k, v in params.items()
|
||||
)
|
||||
|
||||
summary += (
|
||||
f"<br><div style='"
|
||||
"font-size: 0.9em; "
|
||||
"color: #555; "
|
||||
"white-space: pre-wrap; "
|
||||
"word-break: break-word; "
|
||||
"background: none; "
|
||||
"border: none; "
|
||||
"padding: 0; "
|
||||
"margin: 0;'>"
|
||||
f"params: {param_display}"
|
||||
f"<br><div style='font-size:0.9em; color:#555; white-space:pre-wrap; word-break:break-word;'>"
|
||||
"params:"
|
||||
f"<code style='display:block; width:100%; box-sizing:border-box;'>"
|
||||
f"{param_display}"
|
||||
"</code>"
|
||||
"</div>"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user