We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f68ed84 commit 3dd9b03Copy full SHA for 3dd9b03
bugz/cli.py
@@ -329,10 +329,15 @@ def show_bug_info(bug, settings):
329
else:
330
who = comment['creator']
331
when = parsetime(comment['time'])
332
- what = comment['text']
333
- print('[Comment #%d] %s %s' % (i, who, printtime(when, settings)))
+ header_left = '%s %s' % (who, printtime(when, settings))
+ header_right = '[Comment %d]' % i
334
+ space = settings.columns - len(header_left) - len(header_right) - 3
335
+ if space < 0:
336
+ space = 0
337
+ print(header_left, ' ' * space, header_right)
338
print('-' * (settings.columns - 1))
339
340
+ what = comment['text']
341
if what is None:
342
what = ''
343
0 commit comments