1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 06:46:13 +01:00

show review comments in an own line. Before they started in the same line, but reached on typical

screens anyway the second line if they had more than a few chars.
This commit is contained in:
Adrian Schröter 2015-08-13 07:57:08 +02:00
parent f9e54d0488
commit a031dbd083
2 changed files with 7 additions and 3 deletions

View File

@ -2885,7 +2885,9 @@ class Request:
d['by'] = "Project: " + review.by_project
d['when'] = review.when or ''
d['who'] = review.who or ''
d['comment'] = review.comment or ''
d['comment'] = ''
if review.comment:
d['comment'] = '\n ' + review.comment
reviews.append(tmpl % d)
if reviews:
lines.append('\nReview: %s' % indent.join(reviews))

View File

@ -483,8 +483,10 @@ test.
State: review 2010-12-27T01:36:29 abc
Comment: currently in review
Review: accepted Group: group1 2010-12-29T00:11:22 abc accepted
new Group: group1 2010-12-28T00:11:22 abc review start
Review: accepted Group: group1 2010-12-29T00:11:22 abc
accepted
new Group: group1 2010-12-28T00:11:22 abc
review start
History: 2010-12-12T00:00:00 creator revoked
2010-12-11T00:00:00 creator new"""