aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2009-03-05 13:03:17 +0100
committerGuido G√ľnther <agx@sigxcpu.org>2009-03-05 13:41:20 +0100
commitab3b2ba11e483cc9ce4f0238d9ca299c9ad1d7e8 (patch)
tree9d954bd9fc69ad57790728811d2f15f8b7969ef6
parentef5441477b1f1d7fab1e73bf72fedc43549a38ac (diff)
don't append the generated html directly
-rw-r--r--htmlchangelog.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/htmlchangelog.py b/htmlchangelog.py
index c4de291..7f08f30 100644
--- a/htmlchangelog.py
+++ b/htmlchangelog.py
@@ -17,7 +17,7 @@ class HTMLChangelogFilter(object):
]
def __init__(self, vcsbrowser=None):
- self.vcsbrowser=vcsbrowser
+ self.vcsbrowser = vcsbrowser
def vcs_commit_filter(self, changes):
body = []
@@ -28,10 +28,9 @@ class HTMLChangelogFilter(object):
if m:
commitid = m.group('commitid')
link = '<a href="%s">%s</a>' % (self.vcsbrowser.commit(commitid), commitid)
- body.append(m.group("s") + link + m.group("e"))
- break
- else:
- body.append(line)
+ line = m.group("s") + link + m.group("e")
+ break
+ body.append(line)
return "\n".join(body)
def markup_block(self, block):