Signed-off-by: Andy Whitcroft <apw@canonical.com>
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.
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)