mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
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:
committed by
Mahesh Mahadevan
parent
47ae66d828
commit
d43e4e9ca4
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user