commit | 80eb48cc32f47affd78de340050ff7d9656d220c | [log] [tgz] |
---|---|---|
author | James Graham <james@hoppipolla.co.uk> | Mon Jun 21 10:36:02 2021 |
committer | jgraham <james@hoppipolla.co.uk> | Mon Jul 05 09:46:46 2021 |
tree | 3ccca716ad7fbdefc133fee0f5a34c9022c11a72 | |
parent | 4ae48c5858e44dda969f403169aabc96cd553f04 [diff] |
Don't serialize extra whitespace at the end of a meta file Differential Revision: https://phabricator.services.mozilla.com/D118162 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1710605 gecko-commit: 4ee05dc03d18644efbc03f017c346b27580d6dda gecko-reviewers: whimboo
diff --git a/tools/wptrunner/wptrunner/wptmanifest/serializer.py b/tools/wptrunner/wptrunner/wptmanifest/serializer.py index 3fc39a4..e31a607 100644 --- a/tools/wptrunner/wptrunner/wptmanifest/serializer.py +++ b/tools/wptrunner/wptrunner/wptmanifest/serializer.py
@@ -33,6 +33,7 @@ rv = "\n".join(self.visit(root)) if not rv: return rv + rv = rv.strip() if rv[-1] != "\n": rv = rv + "\n" return rv