Fixing wrapping for messages with URLs

This commit is contained in:
Amjad Mashaal
2016-05-25 22:58:16 +02:00
parent 686e60b4bf
commit 0999705691
2 changed files with 25 additions and 7 deletions
+7 -2
View File
@@ -82,10 +82,15 @@ class Reporter(object):
print(le_util.ANSI_SGR_BOLD)
print('IMPORTANT NOTES:')
first_wrapper = textwrap.TextWrapper(
initial_indent=' - ', subsequent_indent=(' ' * 3))
initial_indent=' - ',
subsequent_indent=(' ' * 3),
break_long_words=False,
break_on_hyphens=False)
next_wrapper = textwrap.TextWrapper(
initial_indent=first_wrapper.subsequent_indent,
subsequent_indent=first_wrapper.subsequent_indent)
subsequent_indent=first_wrapper.subsequent_indent,
break_long_words=False,
break_on_hyphens=False)
while not self.messages.empty():
msg = self.messages.get()
if self.config.quiet: