Skip to content

Commit

Permalink
Make YAML files more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Nov 9, 2024
1 parent a770726 commit 5238b4f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyrobosim/pyrobosim/core/yaml_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,10 @@ def to_file(self, world, filename):
"""
world_dict = self.to_dict(world)
with open(filename, "w") as out_file:
yaml.dump(world_dict, out_file, default_flow_style=False)
yaml.dump(
world_dict,
out_file,
default_flow_style=False,
indent=2,
sort_keys=False,
)

0 comments on commit 5238b4f

Please sign in to comment.