From: <sv...@ww...> - 2007-07-31 06:10:28
|
Author: mkrose Date: 2007-07-30 23:09:18 -0700 (Mon, 30 Jul 2007) New Revision: 2160 Modified: trunk/csp/tools/svn/subcmd.py Log: Adjust subset diff output to work with newer versions of konqueror and python. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=2160 Modified: trunk/csp/tools/svn/subcmd.py =================================================================== --- trunk/csp/tools/svn/subcmd.py 2007-07-31 06:07:30 UTC (rev 2159) +++ trunk/csp/tools/svn/subcmd.py 2007-07-31 06:09:18 UTC (rev 2160) @@ -430,7 +430,7 @@ if makeindex: diffindex = os.path.join(tmproot, 'index.html') index = open(diffindex, 'w') - index.write('<html><body><small>\n') + index.write('<html><head><meta http-equiv="Content-Type" content="text/html;charset=utf-8"/></head><body><small>\n') if cs: index.write('<h3>Changeset %s</h3>\n' % cs.name()) index.write('<i>Created on: %s</i><p/>' % cs.date()) @@ -445,7 +445,8 @@ if info is not None: index.write('<p/><i>Submitted by: %s<br/>\n' % info.author) index.write('Submitted on: %s</i><p/>\n' % info.date) - index.write('%s\n' % str(info.msg).replace('\n', '<br/>\n')) + index.write(info.msg.text.replace('\n', '<br/>\n').encode('utf-8')) + index.write('\n') cleanup.append(diffindex) if revision: index.write('<b>diff to revision %s</b>' % revision) |