From d43e4e9ca4e80055e9a0f0b095c856103ee0d11e Mon Sep 17 00:00:00 2001 From: Fabio Baltieri Date: Tue, 27 Sep 2022 15:52:15 +0000 Subject: [PATCH] scripts: dump_bugs_pickle: strip bug titles Strip trailing and leading whitespaces from but titles so that they can be used directly in the release notes. Signed-off-by: Fabio Baltieri --- scripts/dump_bugs_pickle.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/dump_bugs_pickle.py b/scripts/dump_bugs_pickle.py index c0c4038ec35..892cd32841d 100755 --- a/scripts/dump_bugs_pickle.py +++ b/scripts/dump_bugs_pickle.py @@ -43,7 +43,8 @@ def main() -> None: args = parse_args() bugs = get_bugs(args) for bug in sorted(bugs, key=lambda bug: bug.number): - print(f'- :github:`{bug.number}` - {bug.title}') + title = bug.title.strip() + print(f'- :github:`{bug.number}` - {title}') if __name__ == '__main__': main()