Commit 2449c563 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] git-ubuntu-log -- wrap long bug and commit titles

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent 602b1e9e
......@@ -7,6 +7,8 @@ import codecs
import urllib.request
import json
import textwrap
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
# Suck up the git log output and extract the information we need.
......@@ -93,7 +95,14 @@ for bug in bugs:
print('')
emit_nl = True
print(' * ' + title)
title_lines = textwrap.wrap(title, 76)
print(' * ' + title_lines[0])
for line in title_lines[1:]:
print(' ' + line)
emit_title = False
print(' - ' + entry['subject'])
title_lines = textwrap.wrap(entry['subject'], 76)
print(' - ' + title_lines[0])
for line in title_lines[1:]:
print(' ' + line)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment