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:
parent
47ae66d828
commit
d43e4e9ca4
1 changed files with 2 additions and 1 deletions
|
@ -43,7 +43,8 @@ def main() -> None:
|
||||||
args = parse_args()
|
args = parse_args()
|
||||||
bugs = get_bugs(args)
|
bugs = get_bugs(args)
|
||||||
for bug in sorted(bugs, key=lambda bug: bug.number):
|
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__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue