gen_release_notes: strip second newline in new features

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20132>
(cherry picked from commit 980d6a91ee)
This commit is contained in:
Eric Engestrom 2022-12-02 11:58:17 +00:00
parent b8b16d4199
commit 2aff633332
2 changed files with 2 additions and 2 deletions

View file

@ -3964,7 +3964,7 @@
"description": "gen_release_notes: strip second newline in new features",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -287,7 +287,7 @@ def get_features(is_point_release: bool) -> typing.Generator[str, None, None]:
print("WARNING: new features being introduced in a point release", file=sys.stderr)
with p.open('rt') as f:
for line in f:
yield line
yield line.rstrip()
else:
yield "None"
p.unlink()