From: W. Trevor King Date: Mon, 22 Feb 2010 14:39:21 +0000 (-0500) Subject: Use truncated_id in `be html` comment
X-Git-Tag: 1.0.0~59^2~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8c6466e1c0ece79dab0d358097503c6d637ea203;p=be.git Use truncated_id in `be html` comment
--- diff --git a/libbe/command/html.py b/libbe/command/html.py index 1148236..d26faf8 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -243,14 +243,15 @@ class HTMLGen (object): comment_entries.append('
\n') assert len(stack) == depth stack.append(comment) + template_info = { + 'shortname': comment.id.user(), + 'truncated_id': self._truncated_comment_id(comment)} if depth == 0: comment_entries.append('
') else: comment_entries.append( - '
' % comment.uuid) - template_info = { - 'shortname': comment.id.user(), - 'truncated_id': self._truncated_comment_id(comment)} + '
' + % template_info['truncated_id']) for attr in ['uuid', 'author', 'date', 'body']: value = getattr(comment, attr) if attr == 'body':