Skip to content
Snippets Groups Projects
Commit 82051d8f authored by Mike Pennisi's avatar Mike Pennisi
Browse files

[generation] Strip whitespace from generated YAML

parent 84d95077
No related branches found
No related tags found
No related merge requests found
...@@ -119,7 +119,7 @@ class Template: ...@@ -119,7 +119,7 @@ class Template:
features += case_values['meta'].get('features', []) features += case_values['meta'].get('features', [])
features += self.attribs['meta'].get('features', []) features += self.attribs['meta'].get('features', [])
if len(features): if len(features):
lines += ['features: ' + yaml.dump(features)] lines += ['features: ' + yaml.dump(features).strip()]
flags = ['generated'] flags = ['generated']
flags += case_values['meta'].get('flags', []) flags += case_values['meta'].get('flags', [])
......
// This file was procedurally generated from the following sources:
// - tools/generation/test/fixtures/normal.case
// - tools/generation/test/fixtures/normal/features.template
/*---
description: foobar (First template name)
es6id: 1.2.3
features: [f1]
flags: [generated, a, b]
includes: [foo.js]
info: >
case info
---*/
'This is "teardown" code.';
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
name: First template name
path: normal/features-
es6id: 1.2.3
features: [f1]
---*/
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