From 8c6466e1c0ece79dab0d358097503c6d637ea203 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Mon, 22 Feb 2010 09:39:21 -0500 Subject: [PATCH] Use truncated_id in `be html` comment
--- libbe/command/html.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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': -- 2.26.2