From fdca55ad6ba6324cf9cd613367ac09bba6281a88 Mon Sep 17 00:00:00 2001 From: tligui_y Date: Thu, 17 Jul 2025 16:36:46 +0200 Subject: [PATCH] Update json_to_md.py --- json_to_md.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/json_to_md.py b/json_to_md.py index cf635199..3e28b631 100644 --- a/json_to_md.py +++ b/json_to_md.py @@ -20,7 +20,7 @@ def stringify(obj, indent=0): return '\n'.join( f"{space}- (vide)" if not e or (isinstance(e, dict) and not e) else f"{space}- {stringify(e, indent + 1)}" if not isinstance(e, dict) - else f"{space}-\n{stringify(e, indent + 1)}" + else f"{space}- {stringify(e, indent + 1)}" # ← plus de \n ! for e in obj ) @@ -36,6 +36,7 @@ def stringify(obj, indent=0): return str(obj) + def sanitize_param_value(v): s = str(v) return (