From fde014c9871d7d2d1a31e9c9eaddc7b3e4e8c18e Mon Sep 17 00:00:00 2001 From: Thierry Carrez Date: Thu, 11 Apr 2019 13:36:59 +0200 Subject: [PATCH] No longer create longlines with edit-deliverables That was a constant paper cut for me: every time someone uses edit-deliverables it may result in release highlights being reformatted to create lines over 80 char. You can see that happening at: https://review.openstack.org/#/c/650911/1/deliverables/rocky/cloudkitty.yaml where it messes up perfectly-good yaml and turns it into 88-char-long lines. I experimented with various settings (you would think width=80 would do, but no). Forcing dump width at 66 characters seems to produce the desired results. Change-Id: I83934a0f7d6eeaec47b5dcb1a6bfb8c53ed65799 --- openstack_releases/yamlutils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openstack_releases/yamlutils.py b/openstack_releases/yamlutils.py index 78b412fd75..45ee821504 100644 --- a/openstack_releases/yamlutils.py +++ b/openstack_releases/yamlutils.py @@ -117,6 +117,7 @@ def dumps(obj): indent=2, default_flow_style=False, line_break="\n", + width=66, Dumper=PrettySafeDumper, allow_unicode=True) return buff.getvalue()