We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b5d18 commit 869e41bCopy full SHA for 869e41b
1 file changed
.github/scripts/sync_params.py
@@ -369,7 +369,9 @@ def _render_yaml_value(value: Any) -> str:
369
"""
370
stream = io.StringIO()
371
_YAML_RT.dump(value, stream)
372
- return stream.getvalue().rstrip("\n")
+ # ruamel appends "\n...\n" (YAML document-end marker) when dumping bare scalars;
373
+ # strip it so the output stays on a single line for scalar values.
374
+ return stream.getvalue().rstrip("\n").removesuffix("\n...")
375
376
377
def _find_first_value_line(lines: list[str], key_line_idx: int, key_indent: int) -> int | None:
0 commit comments