Skip to content
Snippets Groups Projects
Commit 01e67df3 authored by Rick Waldron's avatar Rick Waldron
Browse files

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

parent 8e8a593e
No related branches found
No related tags found
No related merge requests found
...@@ -154,7 +154,7 @@ class Template: ...@@ -154,7 +154,7 @@ class Template:
features += self.attribs['meta'].get('features', []) features += self.attribs['meta'].get('features', [])
features = list(OrderedDict.fromkeys(features)) features = list(OrderedDict.fromkeys(features))
if len(features): if len(features):
lines += ['features: ' + yaml.dump(features).strip()] lines += ['features: ' + re.sub('\n\s*', ' ', yaml.dump(features).strip())]
flags = ['generated'] flags = ['generated']
flags += case_values['meta'].get('flags', []) flags += case_values['meta'].get('flags', [])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment