Commit 6f984332 authored by Andy Whitcroft's avatar Andy Whitcroft Committed by Tim Gardner

UBUNTU: [Debian] git-ubuntu-log -- prevent bug references being split

Signed-off-by: default avatarAndy Whitcroft <apw@canonical.com>
parent b01eac71
...@@ -86,7 +86,7 @@ for bug in bugs: ...@@ -86,7 +86,7 @@ for bug in bugs:
except urllib.error.HTTPError: except urllib.error.HTTPError:
title = 'INVALID or PRIVATE BUG' title = 'INVALID or PRIVATE BUG'
title += ' (LP: #' + bug + ')' title += ' (LP###' + bug + ')'
emit_title = True emit_title = True
for entry in entries: for entry in entries:
...@@ -99,13 +99,15 @@ for bug in bugs: ...@@ -99,13 +99,15 @@ for bug in bugs:
emit_nl = True emit_nl = True
title_lines = textwrap.wrap(title, 76) title_lines = textwrap.wrap(title, 76)
print(' * ' + title_lines[0]) print(' * ' + title_lines[0].replace('LP###', 'LP: #'))
for line in title_lines[1:]: for line in title_lines[1:]:
line = line.replace('LP###', 'LP: #')
print(' ' + line) print(' ' + line)
emit_title = False emit_title = False
title_lines = textwrap.wrap(entry['subject'], 76) title_lines = textwrap.wrap(entry['subject'], 76)
print(' - ' + title_lines[0]) print(' - ' + title_lines[0])
for line in title_lines[1:]: for line in title_lines[1:]:
line = line.replace('LP###', 'LP: #')
print(' ' + line) 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