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.
entry['ignore'] = True
+if entry and 'ignore' not in entry:
+ entries.append(entry)
+
entries.reverse()
# Go through the entries and clear out authors for upstream commits.
except urllib.error.HTTPError:
title = 'INVALID or PRIVATE BUG'
- title += ' (LP: #' + bug + ')'
+ title += ' (LP###' + bug + ')'
emit_title = True
for entry in entries:
print('')
emit_nl = True
- print(' * ' + title)
+ title_lines = textwrap.wrap(title, 76)
+ print(' * ' + title_lines[0].replace('LP###', 'LP: #'))
+ for line in title_lines[1:]:
+ line = line.replace('LP###', 'LP: #')
+ 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:]:
+ line = line.replace('LP###', 'LP: #')
+ print(' ' + line)