Skip to content

Commit

Permalink
fix: add yaml boundary marker to header
Browse files Browse the repository at this point in the history
Signed-off-by: gardar <gardar@users.noreply.github.com>
  • Loading branch information
gardar committed Apr 26, 2024
1 parent 6a5a063 commit 9a75797
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/antsibull_changelog/yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,10 @@ def store_yaml(path: str, content: Any) -> None:
with open(path, "w", encoding="utf-8") as stream:
dumper = _SafeDumper
dumper.ignore_aliases = lambda *args: True
yaml.dump(content, stream, default_flow_style=False, Dumper=dumper)
yaml.dump(
content,
stream,
default_flow_style=False,
Dumper=dumper,
explicit_start=True
)

0 comments on commit 9a75797

Please sign in to comment.