Skip to content

Commit

Permalink
Builder: Fixed handling of ampersand in commit text
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Dec 23, 2011
1 parent ffd0105 commit d59559b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrib/builder/changes.py
Expand Up @@ -60,14 +60,14 @@ def parse(self):
os.system("git log %s..%s --format=\"%s\" >> %s" % (self.fromTag, self.toTag, format, tmpName))

logText = unicode(file(tmpName, 'rt').read(), 'utf-8')
logText = logText.replace('&', '&')
logText = logText.replace(u'ä', u'ä')
logText = logText.replace(u'ö', u'ö')
logText = logText.replace(u'Ä', u'Ä')
logText = logText.replace(u'Ö', u'Ö')
logText = logText.encode('utf-8')
logText = logText.replace('<', '&lt;')
logText = logText.replace('>', '&gt;')
logText = logText.replace('&', '&amp;')

os.remove(tmpName)

Expand Down

0 comments on commit d59559b

Please sign in to comment.