Generation: fix yaml frontmatter writer to eliminate errant newlines from yaml.dump()

This commit is contained in:
Rick Waldron 2018-10-03 18:14:03 -04:00
parent 8e8a593e1a
commit 01e67df36e
1 changed files with 1 additions and 1 deletions

View File

@ -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', [])