From b216a9b1ec4672b6a9cc291b14c0a41ae134ac32 Mon Sep 17 00:00:00 2001 From: Marc Wrobel Date: Sun, 10 Aug 2025 15:39:31 +0200 Subject: [PATCH] [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. --- update-product-data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update-product-data.py b/update-product-data.py index f6046163..faabc6d7 100644 --- a/update-product-data.py +++ b/update-product-data.py @@ -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")