diff options
author | Guido Günther <agx@sigxcpu.org> | 2009-03-05 13:03:17 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-03-05 13:41:20 +0100 |
commit | ab3b2ba11e483cc9ce4f0238d9ca299c9ad1d7e8 (patch) | |
tree | 9d954bd9fc69ad57790728811d2f15f8b7969ef6 /htmlchangelog.py | |
parent | ef5441477b1f1d7fab1e73bf72fedc43549a38ac (diff) |
don't append the generated html directly
Diffstat (limited to 'htmlchangelog.py')
-rw-r--r-- | htmlchangelog.py | 9 |
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): |