diff --git a/progit/__init__.py b/progit/__init__.py
index ef8dd38..36d003a 100644
--- a/progit/__init__.py
+++ b/progit/__init__.py
@@ -293,23 +293,24 @@ def format_loc(loc, commit=None, prequest=None):
output.append('')
if cnt - 1 in comments:
- output.append(
- '
| '
- ' |
' % (
- {
- 'url': flask.url_for(
- 'view_user', username=comments[cnt -1].user.user),
- 'user': comments[cnt -1].user.user,
- 'date': comments[cnt -1].date_created.strftime(
- '%b %d %Y %H:%M:%S'),
- 'comment': comments[cnt -1].comment,
- }
+ for comment in comments[cnt -1]:
+ output.append(
+ ' | '
+ ' |
' % (
+ {
+ 'url': flask.url_for(
+ 'view_user', username=comment.user.user),
+ 'user': comment.user.user,
+ 'date': comment.date_created.strftime(
+ '%b %d %Y %H:%M:%S'),
+ 'comment': comment.comment,
+ }
+ )
)
- )
output.append('')