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 <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2022-09-27 15:52:15 +00:00 committed by Mahesh Mahadevan
commit d43e4e9ca4

View file

@ -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()