[update-product-data] Improve YAML indendation (#491)

Improve YAML list indentation to be aligned with what is done by IDE or by linters such as Prettier.
This commit is contained in:
Marc Wrobel
2025-08-10 15:39:31 +02:00
committed by GitHub
parent 87134367b5
commit b216a9b1ec

View File

@@ -179,7 +179,7 @@ class Product:
yaml_frontmatter = YAML()
yaml_frontmatter.width = 4096 # prevent line-wrap
yaml_frontmatter.indent(sequence=4)
yaml_frontmatter.indent(sequence=4, offset=2)
yaml_frontmatter.dump(self.data, product_file)
product_file.write("\n---\n\n")