mirror of https://github.com/tc39/test262.git
Generation: fix yaml frontmatter writer to eliminate errant newlines from yaml.dump()
This commit is contained in:
parent
8e8a593e1a
commit
01e67df36e
|
@ -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', [])
|
||||
|
|
Loading…
Reference in New Issue