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 (