From 01e67df36e1f96268f8857133ed90be786c06434 Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Wed, 3 Oct 2018 18:14:03 -0400 Subject: [PATCH] Generation: fix yaml frontmatter writer to eliminate errant newlines from yaml.dump() --- tools/generation/lib/template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generation/lib/template.py b/tools/generation/lib/template.py index bc66b7e8cb..d5fc78d846 100644 --- a/tools/generation/lib/template.py +++ b/tools/generation/lib/template.py @@ -154,7 +154,7 @@ class Template: features += self.attribs['meta'].get('features', []) features = list(OrderedDict.fromkeys(features)) if len(features): - lines += ['features: ' + yaml.dump(features).strip()] + lines += ['features: ' + re.sub('\n\s*', ' ', yaml.dump(features).strip())] flags = ['generated'] flags += case_values['meta'].get('flags', [])